diff options
Diffstat (limited to 'drivers/gpio/gpio-ucb1400.c')
-rw-r--r-- | drivers/gpio/gpio-ucb1400.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/gpio/gpio-ucb1400.c b/drivers/gpio/gpio-ucb1400.c index 50e6bd1392ce..26405efe0f9f 100644 --- a/drivers/gpio/gpio-ucb1400.c +++ b/drivers/gpio/gpio-ucb1400.c | |||
@@ -103,23 +103,12 @@ static struct platform_driver ucb1400_gpio_driver = { | |||
103 | }, | 103 | }, |
104 | }; | 104 | }; |
105 | 105 | ||
106 | static int __init ucb1400_gpio_init(void) | ||
107 | { | ||
108 | return platform_driver_register(&ucb1400_gpio_driver); | ||
109 | } | ||
110 | |||
111 | static void __exit ucb1400_gpio_exit(void) | ||
112 | { | ||
113 | platform_driver_unregister(&ucb1400_gpio_driver); | ||
114 | } | ||
115 | |||
116 | void __init ucb1400_gpio_set_data(struct ucb1400_gpio_data *data) | 106 | void __init ucb1400_gpio_set_data(struct ucb1400_gpio_data *data) |
117 | { | 107 | { |
118 | ucbdata = data; | 108 | ucbdata = data; |
119 | } | 109 | } |
120 | 110 | ||
121 | module_init(ucb1400_gpio_init); | 111 | module_platform_driver(ucb1400_gpio_driver); |
122 | module_exit(ucb1400_gpio_exit); | ||
123 | 112 | ||
124 | MODULE_DESCRIPTION("Philips UCB1400 GPIO driver"); | 113 | MODULE_DESCRIPTION("Philips UCB1400 GPIO driver"); |
125 | MODULE_LICENSE("GPL"); | 114 | MODULE_LICENSE("GPL"); |