aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-01-10 20:37:20 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-10 20:37:20 -0500
commitc2e08e7ce5ab25a781197a71c5241742e8c9fdfe (patch)
tree70cce0b2f4cb82b1670e987169a7790e8467cf41 /drivers/i2c
parent28190145543260c155216b9bd3adf57bee50f8b2 (diff)
parentb3a0aa3ae1c0889ffe8abb2e326d5c74c7c9c097 (diff)
Merge branch 'unicore32' of git://github.com/gxt/linux
* 'unicore32' of git://github.com/gxt/linux: rtc-puv3: solve section mismatch in rtc-puv3.c rtc-puv3: using module_platform_driver() i2c-puv3: using module_platform_driver() rtc-puv3: irq: remove IRQF_DISABLED unicore32: Remove IRQF_DISABLED unicore32: Use set_current_blocked() unicore32: add ioremap_nocache definition unicore32: delete specified xlate_dev_mem_ptr of: add include asm/setup.h in drivers/of/fdt.c unicore32: standardize /proc/iomem "Kernel code" name
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-puv3.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/drivers/i2c/busses/i2c-puv3.c b/drivers/i2c/busses/i2c-puv3.c
index fac673940849..93709fbe30eb 100644
--- a/drivers/i2c/busses/i2c-puv3.c
+++ b/drivers/i2c/busses/i2c-puv3.c
@@ -276,8 +276,6 @@ static int puv3_i2c_resume(struct platform_device *dev)
276#define puv3_i2c_resume NULL 276#define puv3_i2c_resume NULL
277#endif 277#endif
278 278
279MODULE_ALIAS("platform:puv3_i2c");
280
281static struct platform_driver puv3_i2c_driver = { 279static struct platform_driver puv3_i2c_driver = {
282 .probe = puv3_i2c_probe, 280 .probe = puv3_i2c_probe,
283 .remove = __devexit_p(puv3_i2c_remove), 281 .remove = __devexit_p(puv3_i2c_remove),
@@ -289,18 +287,8 @@ static struct platform_driver puv3_i2c_driver = {
289 } 287 }
290}; 288};
291 289
292static int __init puv3_i2c_init(void) 290module_platform_driver(puv3_i2c_driver);
293{
294 return platform_driver_register(&puv3_i2c_driver);
295}
296
297static void __exit puv3_i2c_exit(void)
298{
299 platform_driver_unregister(&puv3_i2c_driver);
300}
301
302module_init(puv3_i2c_init);
303module_exit(puv3_i2c_exit);
304 291
305MODULE_DESCRIPTION("PKUnity v3 I2C driver"); 292MODULE_DESCRIPTION("PKUnity v3 I2C driver");
306MODULE_LICENSE("GPL v2"); 293MODULE_LICENSE("GPL v2");
294MODULE_ALIAS("platform:puv3_i2c");