diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2017-02-14 17:03:46 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2017-03-08 10:04:24 -0500 |
commit | a4bb5b1b47cb50ac6feb662fade4608f8dd0248b (patch) | |
tree | 82ee123992ff5025c0df473016d2b26c9ac346bd | |
parent | 9c28286b1b4b9bce6e35dd4c8a1265f03802a89a (diff) |
bcma: gpio: set of_node regardless of the host type
DT allows describing many device types, not only platform ones. If e.g.
bcma is hosted on PCI(e) and it has its of_node, let's pass it to the
GPIO subsystem. This allows GPIO code to handle more hardware details
not only for bcma on a SoC.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r-- | drivers/bcma/driver_gpio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bcma/driver_gpio.c b/drivers/bcma/driver_gpio.c index 771a2a253440..7bde8d7a2816 100644 --- a/drivers/bcma/driver_gpio.c +++ b/drivers/bcma/driver_gpio.c | |||
@@ -185,8 +185,7 @@ int bcma_gpio_init(struct bcma_drv_cc *cc) | |||
185 | chip->owner = THIS_MODULE; | 185 | chip->owner = THIS_MODULE; |
186 | chip->parent = bcma_bus_get_host_dev(bus); | 186 | chip->parent = bcma_bus_get_host_dev(bus); |
187 | #if IS_BUILTIN(CONFIG_OF) | 187 | #if IS_BUILTIN(CONFIG_OF) |
188 | if (cc->core->bus->hosttype == BCMA_HOSTTYPE_SOC) | 188 | chip->of_node = cc->core->dev.of_node; |
189 | chip->of_node = cc->core->dev.of_node; | ||
190 | #endif | 189 | #endif |
191 | switch (bus->chipinfo.id) { | 190 | switch (bus->chipinfo.id) { |
192 | case BCMA_CHIP_ID_BCM4707: | 191 | case BCMA_CHIP_ID_BCM4707: |