OSDN Git Service

ARM: OMAP2+: Fix socbus family info for AM33xx devices
authorSuman Anna <s-anna@ti.com>
Wed, 11 Mar 2015 23:38:38 +0000 (18:38 -0500)
committerTony Lindgren <tony@atomide.com>
Mon, 16 Mar 2015 22:30:28 +0000 (15:30 -0700)
The family information in the soc-bus data is currently
not classified properly for AM33xx devices, and a read
of /sys/bus/soc/devices/soc0/family currently shows
"Unknown". Fix the same.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/id.c

index 2a2f4d5..25f1bee 100644 (file)
@@ -720,6 +720,8 @@ static const char * __init omap_get_family(void)
                return kasprintf(GFP_KERNEL, "OMAP4");
        else if (soc_is_omap54xx())
                return kasprintf(GFP_KERNEL, "OMAP5");
+       else if (soc_is_am33xx() || soc_is_am335x())
+               return kasprintf(GFP_KERNEL, "AM33xx");
        else if (soc_is_am43xx())
                return kasprintf(GFP_KERNEL, "AM43xx");
        else if (soc_is_dra7xx())