summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/board-genmai.c
diff options
context:
space:
mode:
authorPawel Moll <pawel.moll@arm.com>2014-07-23 18:07:18 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-23 19:09:03 -0700
commitd2168146c222d607bf4baeaaaa990f39411d1567 (patch)
tree67ecdec367d9e7d13eda2bc4b2189453addf568e /arch/arm/mach-shmobile/board-genmai.c
parent90125edbc49ec58b9101c4271bb1d87b04a4620f (diff)
downloadtalos-op-linux-d2168146c222d607bf4baeaaaa990f39411d1567.tar.gz
talos-op-linux-d2168146c222d607bf4baeaaaa990f39411d1567.zip
platform: Remove most references to platform_bus device
A number of board files in arch/arm and arch/unicore32 explicitly reference platform_bus device as a parent for new platform devices. This is unnecessary, as platform device API guarantees that devices with NULL parent are going to by adopted by the mentioned "root" device. This patch removes or replaces with NULL such references. Signed-off-by: Pawel Moll <pawel.moll@arm.com> Acked-by: Olof Johansson <olof@lixom.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/mach-shmobile/board-genmai.c')
-rw-r--r--arch/arm/mach-shmobile/board-genmai.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-shmobile/board-genmai.c b/arch/arm/mach-shmobile/board-genmai.c
index c94201ee8596..37184ff8c5c2 100644
--- a/arch/arm/mach-shmobile/board-genmai.c
+++ b/arch/arm/mach-shmobile/board-genmai.c
@@ -46,7 +46,6 @@ static const struct resource ether_resources[] __initconst = {
};
static const struct platform_device_info ether_info __initconst = {
- .parent = &platform_bus,
.name = "r7s72100-ether",
.id = -1,
.res = ether_resources,
@@ -76,7 +75,7 @@ static const struct rspi_plat_data rspi_pdata __initconst = {
};
#define r7s72100_register_rspi(idx) \
- platform_device_register_resndata(&platform_bus, "rspi-rz", idx, \
+ platform_device_register_resndata(NULL, "rspi-rz", idx, \
rspi##idx##_resources, \
ARRAY_SIZE(rspi##idx##_resources), \
&rspi_pdata, sizeof(rspi_pdata))
@@ -118,7 +117,7 @@ R7S72100_SCIF(6, 0xe800a000, gic_iid(245));
R7S72100_SCIF(7, 0xe800a800, gic_iid(249));
#define r7s72100_register_scif(index) \
- platform_device_register_resndata(&platform_bus, "sh-sci", index, \
+ platform_device_register_resndata(NULL, "sh-sci", index, \
scif##index##_resources, \
ARRAY_SIZE(scif##index##_resources), \
&scif##index##_platform_data, \
OpenPOWER on IntegriCloud