{
int retval = 0;
+ if(!blank_driver.io_op)
+ return -ENODEV;
+
if (blank_driver.io_op->backend == PIO)
omnibook_apply_write_mask(blank_driver.io_op, blank);
else if (blank_driver.io_op->backend == KBC || blank_driver.io_op->backend == CDI)
}
static int __init omnibook_console_blank_init(struct omnibook_operation *io_op)
-{
+{
return console_blank_register_hook();
}
static struct omnibook_tbl blank_table[] __initdata = {
{TSM30X, {CDI, 0, TSM100_BLANK_INDEX, 0, TSM100_LCD_OFF, TSM100_LCD_ON}},
- {XE3GF | XE3GC | AMILOD | TSP10 | TSM30X | TSM40,
+ {XE3GF | XE3GC | AMILOD | TSP10 | TSM30X,
COMMAND(KBC, OMNIBOOK_KBC_CMD_LCD_OFF, OMNIBOOK_KBC_CMD_LCD_ON)},
{OB500 | OB6000 | XE2, {PIO, OB500_GPO1, OB500_GPO1, 0, -OB500_BKLT_MASK, OB500_BKLT_MASK}},
{OB510 | OB6100, {PIO, OB510_GPO2, OB510_GPO2, 0, -OB510_BKLT_MASK, OB510_BKLT_MASK}},
.init = omnibook_console_blank_init,
.exit = omnibook_console_blank_cleanup,
.ectypes =
- XE3GF | XE3GC | OB500 | OB510 | OB6000 | OB6100 | XE2 | AMILOD | TSP10 | TSM30X | TSM40,
+ XE3GF | XE3GC | OB500 | OB510 | OB6000 | OB6100 | XE2 | AMILOD | TSP10 | TSM30X,
.tbl = blank_table,
};