diff options
Diffstat (limited to 'drivers/tty/serial/uartlite.c')
-rw-r--r-- | drivers/tty/serial/uartlite.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c index b908615ccaaf..6cd414341d5e 100644 --- a/drivers/tty/serial/uartlite.c +++ b/drivers/tty/serial/uartlite.c | |||
@@ -569,8 +569,6 @@ static struct of_device_id ulite_of_match[] __devinitdata = { | |||
569 | {} | 569 | {} |
570 | }; | 570 | }; |
571 | MODULE_DEVICE_TABLE(of, ulite_of_match); | 571 | MODULE_DEVICE_TABLE(of, ulite_of_match); |
572 | #else /* CONFIG_OF */ | ||
573 | #define ulite_of_match NULL | ||
574 | #endif /* CONFIG_OF */ | 572 | #endif /* CONFIG_OF */ |
575 | 573 | ||
576 | static int __devinit ulite_probe(struct platform_device *pdev) | 574 | static int __devinit ulite_probe(struct platform_device *pdev) |
@@ -610,7 +608,7 @@ static struct platform_driver ulite_platform_driver = { | |||
610 | .driver = { | 608 | .driver = { |
611 | .owner = THIS_MODULE, | 609 | .owner = THIS_MODULE, |
612 | .name = "uartlite", | 610 | .name = "uartlite", |
613 | .of_match_table = ulite_of_match, | 611 | .of_match_table = of_match_ptr(ulite_of_match), |
614 | }, | 612 | }, |
615 | }; | 613 | }; |
616 | 614 | ||