ARM: OMAP2+: N900: enable N900-specific drivers even if device tree is enabled
authorPavel Machek <pavel@ucw.cz>
Mon, 1 Jul 2013 21:15:04 +0000 (23:15 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 4 Jul 2013 12:11:16 +0000 (05:11 -0700)
We still need video & sound drivers with device tree enabled.

Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-rx51-video.c
sound/soc/omap/rx51.c

index bd74f9f6063b243f523dc288d9aa3d8c1e71362f..bdd1e3a179e1cb32fe3d5aba17a09d37d2704d91 100644 (file)
@@ -61,7 +61,7 @@ static struct omap_dss_board_info rx51_dss_board_info = {
 
 static int __init rx51_video_init(void)
 {
-       if (!machine_is_nokia_rx51())
+       if (!machine_is_nokia_rx51() && !of_machine_is_compatible("nokia,omap3-n900"))
                return 0;
 
        if (omap_mux_init_gpio(RX51_LCD_RESET_GPIO, OMAP_PIN_OUTPUT)) {
index 249cd230ad8f13e62aeeb30d18d301ff2e776384..611179c3bca48c4ca0e9128f3ab5016766373e44 100644 (file)
@@ -396,7 +396,7 @@ static int __init rx51_soc_init(void)
 {
        int err;
 
-       if (!machine_is_nokia_rx51())
+       if (!machine_is_nokia_rx51() && !of_machine_is_compatible("nokia,omap3-n900"))
                return -ENODEV;
 
        err = gpio_request_one(RX51_TVOUT_SEL_GPIO,