From mboxrd@z Thu Jan 1 00:00:00 1970 From: festevam@gmail.com (Fabio Estevam) Date: Thu, 4 Apr 2013 23:20:55 -0300 Subject: [PATCH v4 2/2] video: mxsfb: Use devm_regulator_get() In-Reply-To: <1365128456-8762-1-git-send-email-festevam@gmail.com> References: <1365128456-8762-1-git-send-email-festevam@gmail.com> Message-ID: <1365128456-8762-2-git-send-email-festevam@gmail.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org From: Fabio Estevam Instead of using a custom binding for retrieving the GPIO that activates the LCD from devicetree, use the standard devm_regulator_get(). This approach has the advantage to be more generic. For example: in the case of a board that has a PMIC supplying the LCD voltage, the current approach would not work, as it only searches for a GPIO pin. Cc: Florian Tobias Schandinat Signed-off-by: Fabio Estevam --- Changes since v3: - None Changes since v2: - Use devm_regulator_get() Changes since v1: - No changes drivers/video/mxsfb.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index eac7c1a..c536887 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -42,7 +42,6 @@ #include #include #include -#include #include