]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: shmobile: kzm9d: resigser smsc911x platform device with id -1
authorSimon Horman <horms+renesas@verge.net.au>
Thu, 4 Apr 2013 02:20:33 +0000 (11:20 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 5 Apr 2013 02:24:29 +0000 (11:24 +0900)
commit39116094a6c20781a78e20827830d519350efad7
tree003e83b0879b89e9ec1fe8ef9e0bb05c30bf7128
parent00ae962f8051bb143fa1c43c6a9c8274c3a9c593
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".

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-kzm9d.c