mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
kernel: backport first bcma 4.12 patch for GPIO and of_node
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
This commit is contained in:
parent
92b5b360fe
commit
154b3a6863
12
target/linux/generic/patches-4.4/026-bcma-from-4.12.patch
Normal file
12
target/linux/generic/patches-4.4/026-bcma-from-4.12.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- a/drivers/bcma/driver_gpio.c
|
||||
+++ b/drivers/bcma/driver_gpio.c
|
||||
@@ -190,8 +190,7 @@ int bcma_gpio_init(struct bcma_drv_cc *c
|
||||
chip->owner = THIS_MODULE;
|
||||
chip->dev = bcma_bus_get_host_dev(bus);
|
||||
#if IS_BUILTIN(CONFIG_OF)
|
||||
- if (cc->core->bus->hosttype == BCMA_HOSTTYPE_SOC)
|
||||
- chip->of_node = cc->core->dev.of_node;
|
||||
+ chip->of_node = cc->core->dev.of_node;
|
||||
#endif
|
||||
switch (bus->chipinfo.id) {
|
||||
case BCMA_CHIP_ID_BCM4707:
|
12
target/linux/generic/patches-4.9/072-bcma-from-4.12.patch
Normal file
12
target/linux/generic/patches-4.9/072-bcma-from-4.12.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- a/drivers/bcma/driver_gpio.c
|
||||
+++ b/drivers/bcma/driver_gpio.c
|
||||
@@ -185,8 +185,7 @@ int bcma_gpio_init(struct bcma_drv_cc *c
|
||||
chip->owner = THIS_MODULE;
|
||||
chip->parent = bcma_bus_get_host_dev(bus);
|
||||
#if IS_BUILTIN(CONFIG_OF)
|
||||
- if (cc->core->bus->hosttype == BCMA_HOSTTYPE_SOC)
|
||||
- chip->of_node = cc->core->dev.of_node;
|
||||
+ chip->of_node = cc->core->dev.of_node;
|
||||
#endif
|
||||
switch (bus->chipinfo.id) {
|
||||
case BCMA_CHIP_ID_BCM4707:
|
Loading…
Reference in New Issue
Block a user