OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 12... | Line 12... | |||
12 | 4 files changed, 482 insertions(+) |
12 | 4 files changed, 482 insertions(+) |
|
13 | create mode 100644 drivers/pinctrl/pinctrl-rt2880.c |
13 | create mode 100644 drivers/pinctrl/pinctrl-rt2880.c |
|
Line 14... | Line 14... | |||
14 | |
14 | |
|
15 | --- a/arch/mips/Kconfig |
15 | --- a/arch/mips/Kconfig |
|
16 | +++ b/arch/mips/Kconfig |
16 | +++ b/arch/mips/Kconfig |
|
17 | @@ -629,6 +629,8 @@ config RALINK |
17 | @@ -628,6 +628,8 @@ config RALINK |
|
18 | select CLKDEV_LOOKUP |
18 | select CLKDEV_LOOKUP |
|
19 | select ARCH_HAS_RESET_CONTROLLER |
19 | select ARCH_HAS_RESET_CONTROLLER |
|
20 | select RESET_CONTROLLER |
20 | select RESET_CONTROLLER |
|
21 | + select PINCTRL |
21 | + select PINCTRL |
|
Line 480... | Line 480... | |||
480 | + char *name; |
480 | + char *name; |
|
481 | + |
481 | + |
|
482 | + if (!of_device_is_available(np)) |
482 | + if (!of_device_is_available(np)) |
|
483 | + continue; |
483 | + continue; |
|
484 | + |
484 | + |
|
485 | + ngpio = of_get_property(np, "ralink,nr-gpio", NULL); |
485 | + ngpio = of_get_property(np, "ralink,num-gpios", NULL); |
|
486 | + gpiobase = of_get_property(np, "ralink,gpio-base", NULL); |
486 | + gpiobase = of_get_property(np, "ralink,gpio-base", NULL); |
|
487 | + if (!ngpio || !gpiobase) { |
487 | + if (!ngpio || !gpiobase) { |
|
488 | + dev_err(&pdev->dev, "failed to load chip info\n"); |
488 | + dev_err(&pdev->dev, "failed to load chip info\n"); |
|
489 | + return -EINVAL; |
489 | + return -EINVAL; |
|
490 | + } |
490 | + } |