diff options
Diffstat (limited to 'drivers/bcma/driver_gpio.c')
-rw-r--r-- | drivers/bcma/driver_gpio.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/bcma/driver_gpio.c b/drivers/bcma/driver_gpio.c index 710fa62dd5ae..706b9ae0dcfb 100644 --- a/drivers/bcma/driver_gpio.c +++ b/drivers/bcma/driver_gpio.c | |||
@@ -76,7 +76,7 @@ static void bcma_gpio_free(struct gpio_chip *chip, unsigned gpio) | |||
76 | bcma_chipco_gpio_pullup(cc, 1 << gpio, 0); | 76 | bcma_chipco_gpio_pullup(cc, 1 << gpio, 0); |
77 | } | 77 | } |
78 | 78 | ||
79 | #if IS_BUILTIN(CONFIG_BCMA_HOST_SOC) | 79 | #if IS_BUILTIN(CONFIG_BCM47XX) |
80 | static int bcma_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) | 80 | static int bcma_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) |
81 | { | 81 | { |
82 | struct bcma_drv_cc *cc = bcma_gpio_get_cc(chip); | 82 | struct bcma_drv_cc *cc = bcma_gpio_get_cc(chip); |
@@ -215,9 +215,13 @@ int bcma_gpio_init(struct bcma_drv_cc *cc) | |||
215 | chip->set = bcma_gpio_set_value; | 215 | chip->set = bcma_gpio_set_value; |
216 | chip->direction_input = bcma_gpio_direction_input; | 216 | chip->direction_input = bcma_gpio_direction_input; |
217 | chip->direction_output = bcma_gpio_direction_output; | 217 | chip->direction_output = bcma_gpio_direction_output; |
218 | #if IS_BUILTIN(CONFIG_BCMA_HOST_SOC) | 218 | #if IS_BUILTIN(CONFIG_BCM47XX) |
219 | chip->to_irq = bcma_gpio_to_irq; | 219 | chip->to_irq = bcma_gpio_to_irq; |
220 | #endif | 220 | #endif |
221 | #if IS_BUILTIN(CONFIG_OF) | ||
222 | if (cc->core->bus->hosttype == BCMA_HOSTTYPE_SOC) | ||
223 | chip->of_node = cc->core->dev.of_node; | ||
224 | #endif | ||
221 | switch (cc->core->bus->chipinfo.id) { | 225 | switch (cc->core->bus->chipinfo.id) { |
222 | case BCMA_CHIP_ID_BCM5357: | 226 | case BCMA_CHIP_ID_BCM5357: |
223 | case BCMA_CHIP_ID_BCM53572: | 227 | case BCMA_CHIP_ID_BCM53572: |