diff options
Diffstat (limited to 'drivers/sbus/char/uctrl.c')
-rw-r--r-- | drivers/sbus/char/uctrl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/sbus/char/uctrl.c b/drivers/sbus/char/uctrl.c index 079da4cb45a5..41eb6725ff5f 100644 --- a/drivers/sbus/char/uctrl.c +++ b/drivers/sbus/char/uctrl.c | |||
@@ -368,7 +368,7 @@ static int __devinit uctrl_probe(struct of_device *op, | |||
368 | goto out_free; | 368 | goto out_free; |
369 | } | 369 | } |
370 | 370 | ||
371 | p->irq = op->irqs[0]; | 371 | p->irq = op->archdata.irqs[0]; |
372 | err = request_irq(p->irq, uctrl_interrupt, 0, "uctrl", p); | 372 | err = request_irq(p->irq, uctrl_interrupt, 0, "uctrl", p); |
373 | if (err) { | 373 | if (err) { |
374 | printk(KERN_ERR "uctrl: Unable to register irq.\n"); | 374 | printk(KERN_ERR "uctrl: Unable to register irq.\n"); |
@@ -438,12 +438,12 @@ static struct of_platform_driver uctrl_driver = { | |||
438 | 438 | ||
439 | static int __init uctrl_init(void) | 439 | static int __init uctrl_init(void) |
440 | { | 440 | { |
441 | return of_register_driver(&uctrl_driver, &of_bus_type); | 441 | return of_register_platform_driver(&uctrl_driver); |
442 | } | 442 | } |
443 | 443 | ||
444 | static void __exit uctrl_exit(void) | 444 | static void __exit uctrl_exit(void) |
445 | { | 445 | { |
446 | of_unregister_driver(&uctrl_driver); | 446 | of_unregister_platform_driver(&uctrl_driver); |
447 | } | 447 | } |
448 | 448 | ||
449 | module_init(uctrl_init); | 449 | module_init(uctrl_init); |