video: mxsfb: Let device core handle pinctrl
Subsystems (2)
Fabio Estevam
reviewerPATCH 1/1 video: mxsfb: Let device core handle pinctrl
From: Fabio Estevam <[email protected]>
Since commit ab78029 (drivers/pinctrl: grab default handles from device core) we can rely on device core for handling pinctrl, so remove devm_pinctrl_get_select_default() from the driver.
--- drivers/video/mxsfb.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/video/mxsfb.c +0 -8
@@ -46,7 +46,6 @@#include <linux/clk.h> #include <linux/dma-mapping.h> #include <linux/io.h> -#include <linux/pinctrl/consumer.h> #include <linux/fb.h> #include <linux/regulator/consumer.h> #include <video/of_display_timing.h>
@@ -877,7 +876,6 @@ static int mxsfb_probe(struct platform_device *pdev)struct mxsfb_info *host;struct fb_info *fb_info;struct fb_modelist *modelist; -struct pinctrl *pinctrl;int ret;if (of_id)
@@ -909,12 +907,6 @@ static int mxsfb_probe(struct platform_device *pdev) host->devdata = &mxsfb_devdata[pdev->id_entry->driver_data]; - pinctrl =devm_pinctrl_get_select_default (&pdev->dev); -if (IS_ERR (pinctrl)) { - ret =PTR_ERR (pinctrl); - goto fb_release; - } - host->clk =devm_clk_get (&host->pdev->dev,NULL );if (IS_ERR (host->clk)) { ret =PTR_ERR (host->clk);
Signature · 1 line
1.8.1.2
Quoted 7 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Since commit ab78029 (
drivers/pinctrl: grab default handles from device core) we can rely on device core for handling pinctrl, so removedevm_pinctrl_get_select_default()from the driver.Signed-off-by Fabio Estevam <[email protected]>
Quoted 5 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Since commit ab78029 (
drivers/pinctrl: grab default handles from device core) we can rely on device core for handling pinctrl, so removedevm_pinctrl_get_select_default()from the driver.
Linus we should do a pass on the kernel to clean this
Best Regards,
J.
Quoted 46 lines
Signed-off-by Fabio Estevam <[email protected]>--- drivers/video/mxsfb.c | 8 -------- 1 file changed, 8 deletions(-)drivers/video/mxsfb.c +0
-8@@ -46,7 +46,6 @@#include <linux/clk.h> #include <linux/dma-mapping.h> #include <linux/io.h> -#include <linux/pinctrl/consumer.h> #include <linux/fb.h> #include <linux/regulator/consumer.h> #include <video/of_display_timing.h> @@ -877,7 +876,6 @@ static int mxsfb_probe(struct platform_device *pdev)struct mxsfb_info *host;struct fb_info *fb_info;struct fb_modelist *modelist; -struct pinctrl *pinctrl;int ret;if (of_id)@@ -909,12 +907,6 @@ static int mxsfb_probe(struct platform_device *pdev) host->devdata = &mxsfb_devdata[pdev->id_entry->driver_data]; - pinctrl =devm_pinctrl_get_select_default (&pdev->dev); -if (IS_ERR (pinctrl)) { - ret =PTR_ERR (pinctrl); - goto fb_release; - } - host->clk =devm_clk_get (&host->pdev->dev,NULL );if (IS_ERR (host->clk)) { ret =PTR_ERR (host->clk);Signature · 6 lines
1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Fabio Estevam
reviewerHi Jean-Christophe,
Quoted 7 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 5 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Since commit ab78029 (
drivers/pinctrl: grab default handles from device core) we can rely on device core for handling pinctrl, so removedevm_pinctrl_get_select_default()from the driver.Linus we should do a pass on the kernel to clean this
Not sure which 'Linus' the comment was meant to be directed to, but I have already sent several patches removing devm_pinctrl_get_select_default() and many of them were already applied by the maintainers.
Regards,
Fabio Estevam
Quoted 10 lines · Fabio Estevam
Hi Jean-Christophe,
Quoted 6 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 5 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Since commit ab78029 (
drivers/pinctrl: grab default handles from device core) we can rely on device core for handling pinctrl, so removedevm_pinctrl_get_select_default()from the driver.
Quoted 6 lines
Quoted 1 line
Linus we should do a pass on the kernel to clean this
Not sure which 'Linus' the comment was meant to be directed to, but I have already sent several patches removing
devm_pinctrl_get_select_default()and many of them were already applied by the maintainers.
here I mean linusw
Best Regards,
J.