gpio: mxs: remove useless function
Subsystems (2)
PATCH 1/1 gpio: mxs: remove useless function
Fix the following gcc warning:
drivers/gpio/gpio-mxs.c:63:19: warning: kernel/sys_ni.cunused function 'is_imx28_gpio'.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/gpio/gpio-mxs.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/gpio/gpio-mxs.c +0 -5
@@ -60,11 +60,6 @@ static inline int is_imx23_gpio(struct mxs_gpio_port *port)return port->devid ==IMX23_GPIO ; } -static inline int is_imx28_gpio (struct mxs_gpio_port *port) -{ -return port->devid ==IMX28_GPIO ; -} -/* Note: This driver assumes 32 GPIOs are handled in one register */ static int mxs_gpio_set_irq_type (struct irq_data *d,unsigned int type)
Signature · 1 line
1.8.3.1
Quoted 29 lines · Jiapeng Chong
Fix the following gcc warning:
drivers/gpio/gpio-mxs.c:63:19: warning:kernel/sys_ni.cunusedfunction 'is_imx28_gpio'.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- drivers/gpio/gpio-mxs.c | 5 ----- 1 file changed, 5 deletions(-)drivers/gpio/gpio-mxs.c +0
-6@@ -60,11 +60,6 @@ static inline int is_imx23_gpio(struct mxs_gpio_port *port)return port->devid ==IMX23_GPIO ; } -static inline int is_imx28_gpio (struct mxs_gpio_port *port) -{ -return port->devid ==IMX28_GPIO ; -} -/* Note: This driver assumes 32 GPIOs are handled in one register */ static int mxs_gpio_set_irq_type (struct irq_data *d,unsigned int type) --
Quoted 2 lines
1.8.3.1
Patch applied, thanks!
Bartosz