* [PATCH] video: mxsfb: Let device core handle pinctrl
@ 2013-05-27 1:48 Fabio Estevam
2013-05-27 7:16 ` Shawn Guo
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Fabio Estevam @ 2013-05-27 1:48 UTC (permalink / raw)
To: linux-fbdev
From: Fabio Estevam <fabio.estevam@freescale.com>
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.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
drivers/video/mxsfb.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c
index 21223d4..9d6a286 100644
--- a/drivers/video/mxsfb.c
+++ b/drivers/video/mxsfb.c
@@ -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);
--
1.8.1.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] video: mxsfb: Let device core handle pinctrl
2013-05-27 1:48 [PATCH] video: mxsfb: Let device core handle pinctrl Fabio Estevam
@ 2013-05-27 7:16 ` Shawn Guo
2013-05-27 14:44 ` Jean-Christophe PLAGNIOL-VILLARD
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2013-05-27 7:16 UTC (permalink / raw)
To: linux-fbdev
On Sun, May 26, 2013 at 10:48:14PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> 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.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] video: mxsfb: Let device core handle pinctrl
2013-05-27 1:48 [PATCH] video: mxsfb: Let device core handle pinctrl Fabio Estevam
2013-05-27 7:16 ` Shawn Guo
@ 2013-05-27 14:44 ` Jean-Christophe PLAGNIOL-VILLARD
2013-05-28 15:09 ` Fabio Estevam
2013-05-28 15:25 ` Jean-Christophe PLAGNIOL-VILLARD
3 siblings, 0 replies; 5+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-05-27 14:44 UTC (permalink / raw)
To: linux-fbdev
On 22:48 Sun 26 May , Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> 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.
Linus we should do a pass on the kernel to clean this
Best Regards,
J.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> drivers/video/mxsfb.c | 8 --------
> 1 file changed, 8 deletions(-)
>
> diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c
> index 21223d4..9d6a286 100644
> --- a/drivers/video/mxsfb.c
> +++ b/drivers/video/mxsfb.c
> @@ -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);
> --
> 1.8.1.2
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] video: mxsfb: Let device core handle pinctrl
2013-05-27 1:48 [PATCH] video: mxsfb: Let device core handle pinctrl Fabio Estevam
2013-05-27 7:16 ` Shawn Guo
2013-05-27 14:44 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2013-05-28 15:09 ` Fabio Estevam
2013-05-28 15:25 ` Jean-Christophe PLAGNIOL-VILLARD
3 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2013-05-28 15:09 UTC (permalink / raw)
To: linux-fbdev
Hi Jean-Christophe,
On Mon, May 27, 2013 at 11:44 AM, Jean-Christophe PLAGNIOL-VILLARD
<plagnioj@jcrosoft.com> wrote:
> On 22:48 Sun 26 May , Fabio Estevam wrote:
>> From: Fabio Estevam <fabio.estevam@freescale.com>
>>
>> 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.
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] video: mxsfb: Let device core handle pinctrl
2013-05-27 1:48 [PATCH] video: mxsfb: Let device core handle pinctrl Fabio Estevam
` (2 preceding siblings ...)
2013-05-28 15:09 ` Fabio Estevam
@ 2013-05-28 15:25 ` Jean-Christophe PLAGNIOL-VILLARD
3 siblings, 0 replies; 5+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-05-28 15:25 UTC (permalink / raw)
To: linux-fbdev
On 12:09 Tue 28 May , Fabio Estevam wrote:
> Hi Jean-Christophe,
>
> On Mon, May 27, 2013 at 11:44 AM, Jean-Christophe PLAGNIOL-VILLARD
> <plagnioj@jcrosoft.com> wrote:
> > On 22:48 Sun 26 May , Fabio Estevam wrote:
> >> From: Fabio Estevam <fabio.estevam@freescale.com>
> >>
> >> 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.
> > 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-05-28 15:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-27 1:48 [PATCH] video: mxsfb: Let device core handle pinctrl Fabio Estevam
2013-05-27 7:16 ` Shawn Guo
2013-05-27 14:44 ` Jean-Christophe PLAGNIOL-VILLARD
2013-05-28 15:09 ` Fabio Estevam
2013-05-28 15:25 ` Jean-Christophe PLAGNIOL-VILLARD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).