diff options
-rw-r--r-- | drivers/i2c/busses/i2c-puv3.c | 16 |
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 | ||
279 | MODULE_ALIAS("platform:puv3_i2c"); | ||
280 | |||
281 | static struct platform_driver puv3_i2c_driver = { | 279 | static 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 | ||
292 | static int __init puv3_i2c_init(void) | 290 | module_platform_driver(puv3_i2c_driver); |
293 | { | ||
294 | return platform_driver_register(&puv3_i2c_driver); | ||
295 | } | ||
296 | |||
297 | static void __exit puv3_i2c_exit(void) | ||
298 | { | ||
299 | platform_driver_unregister(&puv3_i2c_driver); | ||
300 | } | ||
301 | |||
302 | module_init(puv3_i2c_init); | ||
303 | module_exit(puv3_i2c_exit); | ||
304 | 291 | ||
305 | MODULE_DESCRIPTION("PKUnity v3 I2C driver"); | 292 | MODULE_DESCRIPTION("PKUnity v3 I2C driver"); |
306 | MODULE_LICENSE("GPL v2"); | 293 | MODULE_LICENSE("GPL v2"); |
294 | MODULE_ALIAS("platform:puv3_i2c"); | ||