OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 186... | Line 186... | |||
186 | @@ -182,8 +213,9 @@ int bcma_gpio_init(struct bcma_drv_cc *c |
186 | @@ -182,8 +213,9 @@ int bcma_gpio_init(struct bcma_drv_cc *c |
|
187 | chip->set = bcma_gpio_set_value; |
187 | chip->set = bcma_gpio_set_value; |
|
188 | chip->direction_input = bcma_gpio_direction_input; |
188 | chip->direction_input = bcma_gpio_direction_input; |
|
189 | chip->direction_output = bcma_gpio_direction_output; |
189 | chip->direction_output = bcma_gpio_direction_output; |
|
190 | - chip->owner = THIS_MODULE; |
190 | - chip->owner = THIS_MODULE; |
|
191 | - chip->parent = bus->dev; |
191 | - chip->parent = bcma_bus_get_host_dev(bus); |
|
192 | +#if IS_BUILTIN(CONFIG_BCM47XX) || IS_BUILTIN(CONFIG_ARCH_BCM_5301X) |
192 | +#if IS_BUILTIN(CONFIG_BCM47XX) || IS_BUILTIN(CONFIG_ARCH_BCM_5301X) |
|
193 | + chip->to_irq = bcma_gpio_to_irq; |
193 | + chip->to_irq = bcma_gpio_to_irq; |
|
194 | +#endif |
194 | +#endif |
|
195 | #if IS_BUILTIN(CONFIG_OF) |
195 | #if IS_BUILTIN(CONFIG_OF) |
|
196 | chip->of_node = cc->core->dev.of_node; |
196 | chip->of_node = cc->core->dev.of_node; |