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)
committerSimon Horman <horms+renesas@verge.net.au>
Fri, 5 Dec 2014 01:10:45 +0000 (10:10 +0900)
commitf7dec566444f6f05735020142e737a5bb0bdc16c
treeb0f92a22148df7797b22139caf2b50ebc51042e7
parent8199896d26076573df4c9c66a8bddcf0bae3fddf
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>
(cherry picked from commit 0a332c96c29c84cd9205c29dfa1add4667456059)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
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