summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2011-02-06 15:28:53 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-09 12:11:54 -0800
commit56463de05a56b80b43d21a442cf2a6e0037762e8 (patch)
treea86a99e9c83fcea548c78fb83390583c6c16cebd
parentbada46e5ab10b09b0f86e8b8ede009e759a16adf (diff)
downloadlinux-56463de05a56b80b43d21a442cf2a6e0037762e8.tar.bz2
staging: olpc_dcon: actually return the value of i2c_add_driver
It's nice to actually check for errors. :) Signed-off-by: Andres Salomon <dilinger@queued.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/olpc_dcon/olpc_dcon.c5
1 files changed, 2 insertions, 3 deletions
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)