[source] kernel: backport first bcma 4.12 patch for GPIO and of_node

LEDE Commits lede-commits at lists.infradead.org
Wed Mar 8 07:55:43 PST 2017


rmilecki pushed a commit to source.git, branch master:
https://git.lede-project.org/154b3a68638297b2ea53deb9bb98f9c5dfe8900b

commit 154b3a68638297b2ea53deb9bb98f9c5dfe8900b
Author: Rafał Miłecki <rafal at milecki.pl>
AuthorDate: Wed Mar 8 16:54:14 2017 +0100

    kernel: backport first bcma 4.12 patch for GPIO and of_node
    
    Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
---
 target/linux/generic/patches-4.4/026-bcma-from-4.12.patch | 12 ++++++++++++
 target/linux/generic/patches-4.9/072-bcma-from-4.12.patch | 12 ++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/target/linux/generic/patches-4.4/026-bcma-from-4.12.patch b/target/linux/generic/patches-4.4/026-bcma-from-4.12.patch
new file mode 100644
index 0000000..ab8a212
--- /dev/null
+++ b/target/linux/generic/patches-4.4/026-bcma-from-4.12.patch
@@ -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:
diff --git a/target/linux/generic/patches-4.9/072-bcma-from-4.12.patch b/target/linux/generic/patches-4.9/072-bcma-from-4.12.patch
new file mode 100644
index 0000000..1c3efea
--- /dev/null
+++ b/target/linux/generic/patches-4.9/072-bcma-from-4.12.patch
@@ -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:



More information about the lede-commits mailing list