diff options
Diffstat (limited to 'drivers/sbus/char/display7seg.c')
-rw-r--r-- | drivers/sbus/char/display7seg.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/sbus/char/display7seg.c b/drivers/sbus/char/display7seg.c index 55f71ea9c418..740da4465447 100644 --- a/drivers/sbus/char/display7seg.c +++ b/drivers/sbus/char/display7seg.c | |||
@@ -171,8 +171,7 @@ static struct miscdevice d7s_miscdev = { | |||
171 | .fops = &d7s_fops | 171 | .fops = &d7s_fops |
172 | }; | 172 | }; |
173 | 173 | ||
174 | static int __devinit d7s_probe(struct platform_device *op, | 174 | static int __devinit d7s_probe(struct platform_device *op) |
175 | const struct of_device_id *match) | ||
176 | { | 175 | { |
177 | struct device_node *opts; | 176 | struct device_node *opts; |
178 | int err = -EINVAL; | 177 | int err = -EINVAL; |
@@ -266,7 +265,7 @@ static const struct of_device_id d7s_match[] = { | |||
266 | }; | 265 | }; |
267 | MODULE_DEVICE_TABLE(of, d7s_match); | 266 | MODULE_DEVICE_TABLE(of, d7s_match); |
268 | 267 | ||
269 | static struct of_platform_driver d7s_driver = { | 268 | static struct platform_driver d7s_driver = { |
270 | .driver = { | 269 | .driver = { |
271 | .name = DRIVER_NAME, | 270 | .name = DRIVER_NAME, |
272 | .owner = THIS_MODULE, | 271 | .owner = THIS_MODULE, |
@@ -278,12 +277,12 @@ static struct of_platform_driver d7s_driver = { | |||
278 | 277 | ||
279 | static int __init d7s_init(void) | 278 | static int __init d7s_init(void) |
280 | { | 279 | { |
281 | return of_register_platform_driver(&d7s_driver); | 280 | return platform_driver_register(&d7s_driver); |
282 | } | 281 | } |
283 | 282 | ||
284 | static void __exit d7s_exit(void) | 283 | static void __exit d7s_exit(void) |
285 | { | 284 | { |
286 | of_unregister_platform_driver(&d7s_driver); | 285 | platform_driver_unregister(&d7s_driver); |
287 | } | 286 | } |
288 | 287 | ||
289 | module_init(d7s_init); | 288 | module_init(d7s_init); |