Skip to contentSkip to conversation

sh: pfc: Fix build issues in pinctrl.c

PATCH In review Rafael J. Wysocki 2 participants 3 messages Jul 27, 2012 – Jul 28, 2012 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: pfc: Fix build issues in pinctrl.c

First off, drivers/sh/pfc/pinctrl.c doesn't build after commit 5d589b0 (pinctrl: remove pinctrl_remove_gpio_range), because sh_pfc_pinctrl_remove() uses the function that has been removed by that commit. Fix this by removing the pinctrl_remove_gpio_range() call, which is not necessary any more, from sh_pfc_pinctrl_remove().

Second, the compiler complains correctly that there's an unused local variable in sh_pfc_pinconf_set(). Fix this by removing the definition of that variable.

---
 drivers/sh/pfc/pinctrl.c |    2 --
 1 file changed, 2 deletions(-)
drivers/sh/pfc/pinctrl.c +0 -2
Index: linux/drivers/sh/pfc/pinctrl.c
===================================================================
@@ -276,7 +276,6 @@ static int sh_pfc_pinconf_set(struct pin
 			      unsigned long config)
 {
 	struct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev);
-	struct sh_pfc *pfc = pmx->pfc;
 
 	/* Validate the new type */
 	if (config >= PINMUX_FLAG_TYPE)
@@ -481,7 +480,6 @@ static int __devexit sh_pfc_pinctrl_remo
 {
 	struct sh_pfc_pinctrl *pmx = platform_get_drvdata(pdev);
 
-	pinctrl_remove_gpio_range(pmx->pctl, &sh_pfc_gpio_range);
 	pinctrl_unregister(pmx->pctl);
 
 	platform_set_drvdata(pdev, NULL);
#1 lore raw
Quoted 7 lines · Rafael J. Wysocki

First off, drivers/sh/pfc/pinctrl.c doesn't build after commit 5d589b0 (pinctrl: remove pinctrl_remove_gpio_range), because sh_pfc_pinctrl_remove() uses the function that has been removed by that commit. Fix this by removing the pinctrl_remove_gpio_range() call, which is not necessary any more, from sh_pfc_pinctrl_remove().

Quoted 5 lines

Second, the compiler complains correctly that there's an unused local variable in sh_pfc_pinconf_set(). Fix this by removing the definition of that variable.

Already fixed in my tree, as pointed out when Iwamatsu-san sent the same patch.

#2 lore raw
Quoted 8 lines · Paul Mundt
Quoted 7 lines · Rafael J. Wysocki

First off, drivers/sh/pfc/pinctrl.c doesn't build after commit 5d589b0 (pinctrl: remove pinctrl_remove_gpio_range), because sh_pfc_pinctrl_remove() uses the function that has been removed by that commit. Fix this by removing the pinctrl_remove_gpio_range() call, which is not necessary any more, from sh_pfc_pinctrl_remove().

Quoted 8 lines
Quoted 5 lines

Second, the compiler complains correctly that there's an unused local variable in sh_pfc_pinconf_set(). Fix this by removing the definition of that variable.

Already fixed in my tree, as pointed out when Iwamatsu-san sent the same patch.

I must have overlooked that one. Thanks!