OSDN Git Service

pinctrl: sh-pfc: sh73a0: Remove unnecessary SoC data allocation
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 10 Sep 2014 21:55:55 +0000 (00:55 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 23 Sep 2014 15:11:22 +0000 (17:11 +0200)
commit0a332c96c29c84cd9205c29dfa1add4667456059
tree165f8a7a8e4ce52a5af28cab0624e48401c3cb32
parent6064b1474ef3cfa523916008b5176026bbc990d3
pinctrl: sh-pfc: sh73a0: Remove unnecessary SoC data allocation

The SoC data structure allocated at init time only holds a regulator
pointer that is only used in the init function. Replace it with a local
variable and get rid of the SoC data structure allocation altogether.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sh-pfc/core.c
drivers/pinctrl/sh-pfc/core.h
drivers/pinctrl/sh-pfc/pfc-sh73a0.c
drivers/pinctrl/sh-pfc/sh_pfc.h