Skip to contentSkip to conversation

gpio: mxs: remove useless function

PATCH In review Jiapeng Chong 2 participants 2 messages Apr 12, 2021 – Apr 13, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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'.

---
 drivers/gpio/gpio-mxs.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/gpio/gpio-mxs.c +0 -5
index dfc0c1e..524b668 100644
@@ -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
#1 lore raw
Quoted 29 lines · Jiapeng Chong

Fix the following gcc warning:

drivers/gpio/gpio-mxs.c:63:19: warning: kernel/sys_ni.cunused function 'is_imx28_gpio'.

---
 drivers/gpio/gpio-mxs.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/gpio/gpio-mxs.c +0 -6
index dfc0c1e..524b668 100644
@@ -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