From: Andres Salomon Date: Sun, 6 Feb 2011 23:28:53 +0000 (-0800) Subject: staging: olpc_dcon: actually return the value of i2c_add_driver X-Git-Tag: MMI-PSA29.97-13-9~20521^2~619 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=56463de05a56b80b43d21a442cf2a6e0037762e8;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: olpc_dcon: actually return the value of i2c_add_driver It's nice to actually check for errors. :) Signed-off-by: Andres Salomon Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/olpc_dcon/olpc_dcon.c b/drivers/staging/olpc_dcon/olpc_dcon.c index 5d85d779952d..eec10e78faba 100644 --- a/drivers/staging/olpc_dcon/olpc_dcon.c +++ b/drivers/staging/olpc_dcon/olpc_dcon.c @@ -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)