提交 56463de0 编写于 作者: A Andres Salomon 提交者: Greg Kroah-Hartman

staging: olpc_dcon: actually return the value of i2c_add_driver

It's nice to actually check for errors. :)
Signed-off-by: NAndres Salomon <dilinger@queued.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 bada46e5
......@@ -872,7 +872,7 @@ static irqreturn_t dcon_interrupt(int irq, void *id)
return IRQ_HANDLED;
}
static struct i2c_device_id dcon_idtable[] = {
static const struct i2c_device_id dcon_idtable[] = {
{ "olpc_dcon", 0 },
{ }
};
......@@ -901,8 +901,7 @@ static int __init olpc_dcon_init(void)
{
pdata = &dcon_pdata_xo_1;
i2c_add_driver(&dcon_driver);
return 0;
return i2c_add_driver(&dcon_driver);
}
static void __exit olpc_dcon_exit(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册