diff options
author | Tomaz Solc <tomaz.solc@tablix.org> | 2019-02-18 12:32:17 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-02-19 10:07:44 +0100 |
commit | 67ec7263ca9e922d07241618f72eb0beb9c739a2 (patch) | |
tree | 769e109583ec3f4719325f88d1284ca4d8c54c6d | |
parent | 2f6ade747deb2fd1ea07606edb84ffe2d91f8849 (diff) | |
download | barebox-67ec7263ca9e922d07241618f72eb0beb9c739a2.tar.gz barebox-67ec7263ca9e922d07241618f72eb0beb9c739a2.tar.xz |
mci: bcm2835: use device_initcall(), not coredev.
pinctrl driver needs to be initialized before mci driver on Raspberry Pi.
Otherwise the pinctrl device tree properties in the mci node are ignored.
pinctrl is initialized by coredevice_initcall(), so moving mci-bcm2835 to
device_initcall() ensures that it is initialized later.
There is no reason for mci-bcm2835 to use coredevice_initcall(). Other mci
drivers already use device_initcall().
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/mci/mci-bcm2835.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mci/mci-bcm2835.c b/drivers/mci/mci-bcm2835.c index 9438e66af0..e7dbb4f1de 100644 --- a/drivers/mci/mci-bcm2835.c +++ b/drivers/mci/mci-bcm2835.c @@ -561,4 +561,4 @@ static int bcm2835_mci_add(void) { return platform_driver_register(&bcm2835_mci_driver); } -coredevice_initcall(bcm2835_mci_add); +device_initcall(bcm2835_mci_add); |