that platform_device is only registered by
board-h4.c, so there's no need to check which
machine is running as the driver won't bind
to anything.

Signed-off-by: Felipe Balbi <[email protected]>
---
 arch/arm/plat-omap/debug-leds.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/arch/arm/plat-omap/debug-leds.c b/arch/arm/plat-omap/debug-leds.c
index 39407cb..17cbef6 100644
--- a/arch/arm/plat-omap/debug-leds.c
+++ b/arch/arm/plat-omap/debug-leds.c
@@ -304,12 +304,6 @@ static struct platform_driver led_driver = {
 
 static int __init fpga_init(void)
 {
-       if (machine_is_omap_h4()
-                       || machine_is_omap_h3()
-                       || machine_is_omap_h2()
-                       || machine_is_omap_perseus2()
-                       )
-               return platform_driver_register(&led_driver);
-       return 0;
+       return platform_driver_register(&led_driver);
 }
 fs_initcall(fpga_init);
-- 
1.7.11

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to