summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ux500/cpu-db5500.c
diff options
context:
space:
mode:
authorLee Jones2012-02-06 20:22:25 +0100
committerArnd Bergmann2012-02-13 07:31:44 +0100
commitb024a0c804356d90b13c072c8bbb444d9e745a66 (patch)
tree5e0ef411be516b6b9a176f0e9b84ccd665bdcd3e /arch/arm/mach-ux500/cpu-db5500.c
parentARM: ux500: export System-on-Chip information ux500 via sysfs (diff)
downloadkernel-qcow2-linux-b024a0c804356d90b13c072c8bbb444d9e745a66.tar.gz
kernel-qcow2-linux-b024a0c804356d90b13c072c8bbb444d9e745a66.tar.xz
kernel-qcow2-linux-b024a0c804356d90b13c072c8bbb444d9e745a66.zip
ARM: ux500: move top level platform devices in sysfs to /sys/devices/socX
At the request of Arnd Bergmann this patch moves all SoC platform devices found in sysfs from /sys/devices/platform to /sys/devices/soc<SoCNum>/. It is believed as the devices are SoC specific and a /sys/devices/soc node has recently become available, that this would be a more appropriate place to display the data. Signed-off-by: Lee Jones <lee.jones@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-ux500/cpu-db5500.c')
-rw-r--r--arch/arm/mach-ux500/cpu-db5500.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/cpu-db5500.c b/arch/arm/mach-ux500/cpu-db5500.c
index 8f8acfdd4a1b..bca47f32082f 100644
--- a/arch/arm/mach-ux500/cpu-db5500.c
+++ b/arch/arm/mach-ux500/cpu-db5500.c
@@ -227,6 +227,7 @@ static struct device * __init db5500_soc_device_init(void)
struct device * __init u5500_init_devices(void)
{
struct device *parent;
+ int i;
parent = db5500_soc_device_init();
@@ -236,6 +237,9 @@ struct device * __init u5500_init_devices(void)
db5500_add_rtc(parent);
db5500_add_usb(parent, usb_db5500_rx_dma_cfg, usb_db5500_tx_dma_cfg);
+ for (i = 0; i < ARRAY_SIZE(db5500_platform_devs); i++)
+ db5500_platform_devs[i]->dev.parent = parent;
+
platform_add_devices(db5500_platform_devs,
ARRAY_SIZE(db5500_platform_devs));