summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-viperboard.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-06-10 20:10:59 +0300
committerLinus Walleij <linus.walleij@linaro.org>2019-06-12 11:14:48 +0200
commit9c7f798d170a848cdcfbb81763c05635900146aa (patch)
tree41fe7f4d607d03f4d5b329e1769370bd72b84227 /drivers/gpio/gpio-viperboard.c
parent9a3027812257de71cd4122f69d7f4b16551bc076 (diff)
downloadlinux-9c7f798d170a848cdcfbb81763c05635900146aa.tar.bz2
gpio: omap: clean up omap_gpio_restore_context()
Use local variables to store the base iomem address and regs table pointer like omap_gpio_init_context() does. Not only does this make the function neater, it also avoids unnecessary reloads of the same data multiple times. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Tested-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-viperboard.c')
0 files changed, 0 insertions, 0 deletions