aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ux500/cpu-db8500.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2012-02-06 14:22:25 -0500
committerArnd Bergmann <arnd@arndb.de>2012-02-13 01:31:44 -0500
commitb024a0c804356d90b13c072c8bbb444d9e745a66 (patch)
tree5e0ef411be516b6b9a176f0e9b84ccd665bdcd3e /arch/arm/mach-ux500/cpu-db8500.c
parenteda413c228e227d888bc13d210e7c4c6aa62a682 (diff)
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-db8500.c')
-rw-r--r--arch/arm/mach-ux500/cpu-db8500.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c
index afcde3df71d7..9bd8163896cf 100644
--- a/arch/arm/mach-ux500/cpu-db8500.c
+++ b/arch/arm/mach-ux500/cpu-db8500.c
@@ -188,6 +188,7 @@ static struct device * __init db8500_soc_device_init(void)
188struct device * __init u8500_init_devices(void) 188struct device * __init u8500_init_devices(void)
189{ 189{
190 struct device *parent; 190 struct device *parent;
191 int i;
191 192
192 parent = db8500_soc_device_init(); 193 parent = db8500_soc_device_init();
193 194
@@ -195,7 +196,12 @@ struct device * __init u8500_init_devices(void)
195 db8500_add_gpios(parent); 196 db8500_add_gpios(parent);
196 db8500_add_usb(parent, usb_db8500_rx_dma_cfg, usb_db8500_tx_dma_cfg); 197 db8500_add_usb(parent, usb_db8500_rx_dma_cfg, usb_db8500_tx_dma_cfg);
197 198
198 platform_device_register_simple("cpufreq-u8500", -1, NULL, 0); 199 platform_device_register_data(parent,
200 "cpufreq-u8500", -1, NULL, 0);
201
202 for (i = 0; i < ARRAY_SIZE(platform_devs); i++)
203 platform_devs[i]->dev.parent = parent;
204
199 platform_add_devices(platform_devs, ARRAY_SIZE(platform_devs)); 205 platform_add_devices(platform_devs, ARRAY_SIZE(platform_devs));
200 206
201 return parent; 207 return parent;