/* this function is called by i2c_probe */
static int tea6415c_detect(struct i2c_adapter *adapter, int address, int kind)
{
- struct i2c_client *client = 0;
+ struct i2c_client *client = NULL;
int err = 0;
/* let's see whether this adapter can support what we need */
.command = tea6415c_command,
};
-static int tea6415c_init_module(void)
+static int __init tea6415c_init_module(void)
{
- i2c_add_driver(&driver);
- return 0;
+ return i2c_add_driver(&driver);
}
-static void tea6415c_cleanup_module(void)
+static void __exit tea6415c_cleanup_module(void)
{
i2c_del_driver(&driver);
}