]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/i2c/busses/i2c-highlander.c
Merge tag 'for-linus' of git://github.com/rustyrussell/linux
[linux-beck.git] / drivers / i2c / busses / i2c-highlander.c
index 63bb1cc2a042125fe87e2bf9243a4bc40ffc5ab8..19515df610219a32fea7b2c162744a4474ead8bd 100644 (file)
@@ -52,7 +52,7 @@ struct highlander_i2c_dev {
        size_t                  buf_len;
 };
 
-static int iic_force_poll, iic_force_normal;
+static bool iic_force_poll, iic_force_normal;
 static int iic_timeout = 1000, iic_read_delay;
 
 static inline void highlander_i2c_irq_enable(struct highlander_i2c_dev *dev)
@@ -468,18 +468,7 @@ static struct platform_driver highlander_i2c_driver = {
        .remove         = __devexit_p(highlander_i2c_remove),
 };
 
-static int __init highlander_i2c_init(void)
-{
-       return platform_driver_register(&highlander_i2c_driver);
-}
-
-static void __exit highlander_i2c_exit(void)
-{
-       platform_driver_unregister(&highlander_i2c_driver);
-}
-
-module_init(highlander_i2c_init);
-module_exit(highlander_i2c_exit);
+module_platform_driver(highlander_i2c_driver);
 
 MODULE_AUTHOR("Paul Mundt");
 MODULE_DESCRIPTION("Renesas Highlander FPGA I2C/SMBus adapter");