Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56463de0 authored by Andres Salomon's avatar Andres Salomon Committed by Greg Kroah-Hartman
Browse files

staging: olpc_dcon: actually return the value of i2c_add_driver



It's nice to actually check for errors. :)

Signed-off-by: default avatarAndres Salomon <dilinger@queued.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent bada46e5
Loading
Loading
Loading
Loading
+2 −3
Original line number Original line Diff line number Diff line
@@ -872,7 +872,7 @@ static irqreturn_t dcon_interrupt(int irq, void *id)
	return IRQ_HANDLED;
	return IRQ_HANDLED;
}
}


static struct i2c_device_id dcon_idtable[] = {
static const struct i2c_device_id dcon_idtable[] = {
	{ "olpc_dcon",  0 },
	{ "olpc_dcon",  0 },
	{ }
	{ }
};
};
@@ -901,8 +901,7 @@ static int __init olpc_dcon_init(void)
{
{
	pdata = &dcon_pdata_xo_1;
	pdata = &dcon_pdata_xo_1;


	i2c_add_driver(&dcon_driver);
	return i2c_add_driver(&dcon_driver);
	return 0;
}
}


static void __exit olpc_dcon_exit(void)
static void __exit olpc_dcon_exit(void)