Changeset 47841


Ignore:
Timestamp:
2015-12-11T16:03:16+01:00 (2 years ago)
Author:
blogic
Message:

ramips: irq handlers do not get irq in 4.3 kernel, update patches

This resolves compilation warnings like this:
drivers/gpio/gpio-mt7621.c: In function 'mediatek_gpio_probe':
drivers/gpio/gpio-mt7621.c:328:46: warning: passing argument 2 of 'irq_set_chained_handler' from incompatible pointer type [-Wincompatible-pointer-types]

irq_set_chained_handler(mediatek_gpio_irq, mediatek_gpio_irq_handler);

Signed-off-by: Nikolay Martynov <mar.kolya@…>

Location:
trunk/target/linux/ramips/patches-4.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/patches-4.3/0027-GPIO-MIPS-ralink-add-gpio-driver-for-ralink-SoC.patch

    r47831 r47841  
    1919 create mode 100644 drivers/gpio/gpio-ralink.c 
    2020 
    21 diff --git a/arch/mips/include/asm/mach-ralink/gpio.h b/arch/mips/include/asm/mach-ralink/gpio.h 
    22 new file mode 100644 
    23 index 0000000..f68ee16 
    2421--- /dev/null 
    2522+++ b/arch/mips/include/asm/mach-ralink/gpio.h 
     
    4946+ 
    5047+#endif /* __ASM_MACH_RALINK_GPIO_H */ 
    51 diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig 
    52 index 8949b3f..4a3e7df 100644 
    5348--- a/drivers/gpio/Kconfig 
    5449+++ b/drivers/gpio/Kconfig 
     
    6661        bool "ST SPEAr13xx SPI Chip Select as GPIO support" 
    6762        depends on PLAT_SPEAR 
    68 diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile 
    69 index f79a7c4..13448d78 100644 
    7063--- a/drivers/gpio/Makefile 
    7164+++ b/drivers/gpio/Makefile 
    72 @@ -75,6 +75,7 @@ obj-$(CONFIG_GPIO_PCF857X)    += gpio-pcf857x.o 
     65@@ -75,6 +75,7 @@ obj-$(CONFIG_GPIO_PCF857X)    += gpio-pcf85 
    7366 obj-$(CONFIG_GPIO_PCH)         += gpio-pch.o 
    7467 obj-$(CONFIG_GPIO_PL061)       += gpio-pl061.o 
     
    7871 obj-$(CONFIG_GPIO_RDC321X)     += gpio-rdc321x.o 
    7972 obj-$(CONFIG_GPIO_RCAR)                += gpio-rcar.o 
    80 diff --git a/drivers/gpio/gpio-ralink.c b/drivers/gpio/gpio-ralink.c 
    81 new file mode 100644 
    82 index 0000000..2be9b8a 
    8373--- /dev/null 
    8474+++ b/drivers/gpio/gpio-ralink.c 
     
    209199+} 
    210200+ 
    211 +static void ralink_gpio_irq_handler(unsigned int irq, struct irq_desc *desc) 
     201+static void ralink_gpio_irq_handler(struct irq_desc *desc) 
    212202+{ 
    213203+       int i; 
     
    439429+ 
    440430+subsys_initcall(ralink_gpio_init); 
    441 --  
    442 1.7.10.4 
    443  
  • trunk/target/linux/ramips/patches-4.3/0028-GPIO-ralink-add-mt7621-gpio-controller.patch

    r47831 r47841  
    1313 create mode 100644 drivers/gpio/gpio-mt7621.c 
    1414 
    15 diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig 
    16 index 0098bff..94ea345 100644 
    1715--- a/arch/mips/Kconfig 
    1816+++ b/arch/mips/Kconfig 
     
    2725 config SGI_IP22 
    2826        bool "SGI IP22 (Indy/Indigo2)" 
    29 diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig 
    30 index 4a3e7df..13f860c 100644 
    3127--- a/drivers/gpio/Kconfig 
    3228+++ b/drivers/gpio/Kconfig 
     
    4440        bool "Lantiq Memory mapped GPIOs" 
    4541        depends on LANTIQ && SOC_XWAY 
    46 diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile 
    47 index 13448d78..5563d6e 100644 
    4842--- a/drivers/gpio/Makefile 
    4943+++ b/drivers/gpio/Makefile 
    50 @@ -119,3 +119,4 @@ obj-$(CONFIG_GPIO_XTENSA)   += gpio-xtensa.o 
     44@@ -119,3 +119,4 @@ obj-$(CONFIG_GPIO_XTENSA)   += gpio-xtensa 
    5145 obj-$(CONFIG_GPIO_ZEVIO)       += gpio-zevio.o 
    5246 obj-$(CONFIG_GPIO_ZYNQ)                += gpio-zynq.o 
    5347 obj-$(CONFIG_GPIO_ZX)          += gpio-zx.o 
    5448+obj-$(CONFIG_GPIO_MT7621)      += gpio-mt7621.o 
    55 diff --git a/drivers/gpio/gpio-mt7621.c b/drivers/gpio/gpio-mt7621.c 
    56 new file mode 100644 
    57 index 0000000..7a98b94 
    5849--- /dev/null 
    5950+++ b/drivers/gpio/gpio-mt7621.c 
     
    244235+ 
    245236+static void 
    246 +mediatek_gpio_irq_handler(unsigned int irq, struct irq_desc *desc) 
     237+mediatek_gpio_irq_handler(struct irq_desc *desc) 
    247238+{ 
    248239+       int i; 
     
    413404+ 
    414405+subsys_initcall(mediatek_gpio_init); 
    415 --  
    416 1.7.10.4 
    417  
Note: See TracChangeset for help on using the changeset viewer.