ARM: shmobile: kzm9d: resigser smsc911x platform device with id -1
PATCH 1/1 ARM: shmobile: kzm9d: resigser smsc911x platform device with id -1
As the kzm9d only has one smsc911x device it may be registered as a platform device with id -1.
This allows the kzm9d board to access the smsc911x device when CONFIG_REGULATOR (and CONFIG_REGULATOR_FIXED_VOLTAGE) are set. The motivation for which is twofold: using regulators seems to be generally a good thing; it will move the kzm9d defconfig one step closer to being able to be consolidated with other shmobile defconfigs.
An alternate but so far untested approach would be to update the definition of dummy_supplies in board-kzm9d.c to use "smsc911x.0" instead of "smsc911x".
--- arch/arm/mach-shmobile/board-kzm9d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-shmobile/board-kzm9d.c +1 -1
@@ -56,7 +56,7 @@ static struct smsc911x_platform_config smsc911x_platdata = {static struct platform_device smsc91x_device = { .name ="smsc911x" , - .id =0 , + .id =-1 , .dev = { .platform_data = &smsc911x_platdata, },
Signature · 1 line
1.7.10.4
Simon Horman
AppliedPATCH 1/1 ARM: shmobile: kzm9d: resigser smsc911x platform device with id -1
Quoted 35 lines · Simon Horman
As the kzm9d only has one smsc911x device it may be registered as a platform device with id -1.
This allows the kzm9d board to access the smsc911x device when
CONFIG_REGULATOR(andCONFIG_REGULATOR_FIXED_VOLTAGE) are set. The motivation for which is twofold: using regulators seems to be generally a good thing; it will move the kzm9d defconfig one step closer to being able to be consolidated with other shmobile defconfigs.An alternate but so far untested approach would be to update the definition of
dummy_suppliesinboard-kzm9d.cto use "smsc911x.0" instead of "smsc911x".Signed-off-by Simon Horman <[email protected]>--- arch/arm/mach-shmobile/board-kzm9d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-shmobile/board-kzm9d.c +1
-1@@ -56,7 +56,7 @@ static struct smsc911x_platform_config smsc911x_platdata = {static struct platform_device smsc91x_device = { .name ="smsc911x" , - .id =0 , + .id =-1 , .dev = { .platform_data = &smsc911x_platdata, },Signature · 1 line
1.7.10.4
Queued up in the boards-kzm9d branch.