linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 01/15] video: bfin: remove unnecessary platform_set_drvdata()
@ 2013-06-25  1:45 Jingoo Han
  0 siblings, 0 replies; 3+ messages in thread
From: Jingoo Han @ 2013-06-25  1:45 UTC (permalink / raw)
  To: linux-fbdev

On Saturday, May 11, 2013 9:45 PM, Jingoo Han wrote:
> 
> The driver core clears the driver data to NULL after device_release
> or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
> (device-core: Ensure drvdata = NULL when no driver is bound).
> Thus, it is not needed to manually clear the device driver data to NULL.
> 
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>

Hi,

I will squash everything down into one patch with the ACKs,
and send it again.

Best regards,
Jingoo Han


> ---
>  drivers/video/bf54x-lq043fb.c    |    1 -
>  drivers/video/bfin-lq035q1-fb.c  |    2 --
>  drivers/video/bfin-t350mcqb-fb.c |    2 --
>  3 files changed, 0 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/video/bf54x-lq043fb.c b/drivers/video/bf54x-lq043fb.c
> index 2726a5b..87f288b 100644
> --- a/drivers/video/bf54x-lq043fb.c
> +++ b/drivers/video/bf54x-lq043fb.c
> @@ -681,7 +681,6 @@ out3:
>  out2:
>  	free_dma(CH_EPPI0);
>  out1:
> -	platform_set_drvdata(pdev, NULL);
> 
>  	return ret;
>  }
> diff --git a/drivers/video/bfin-lq035q1-fb.c b/drivers/video/bfin-lq035q1-fb.c
> index 29d8c04..be65bae 100644
> --- a/drivers/video/bfin-lq035q1-fb.c
> +++ b/drivers/video/bfin-lq035q1-fb.c
> @@ -759,7 +759,6 @@ static int bfin_lq035q1_probe(struct platform_device *pdev)
>   out2:
>  	free_dma(CH_PPI);
>   out1:
> -	platform_set_drvdata(pdev, NULL);
> 
>  	return ret;
>  }
> @@ -788,7 +787,6 @@ static int bfin_lq035q1_remove(struct platform_device *pdev)
>  	bfin_lq035q1_free_ports(info->disp_info->ppi_mode =
>  				USE_RGB565_16_BIT_PPI);
> 
> -	platform_set_drvdata(pdev, NULL);
>  	framebuffer_release(fbinfo);
> 
>  	dev_info(&pdev->dev, "unregistered LCD driver\n");
> diff --git a/drivers/video/bfin-t350mcqb-fb.c b/drivers/video/bfin-t350mcqb-fb.c
> index d46da01..48c0c4e 100644
> --- a/drivers/video/bfin-t350mcqb-fb.c
> +++ b/drivers/video/bfin-t350mcqb-fb.c
> @@ -578,7 +578,6 @@ out3:
>  out2:
>  	free_dma(CH_PPI);
>  out1:
> -	platform_set_drvdata(pdev, NULL);
> 
>  	return ret;
>  }
> @@ -608,7 +607,6 @@ static int bfin_t350mcqb_remove(struct platform_device *pdev)
> 
>  	bfin_t350mcqb_request_ports(0);
> 
> -	platform_set_drvdata(pdev, NULL);
>  	framebuffer_release(fbinfo);
> 
>  	printk(KERN_INFO DRIVER_NAME ": Unregister LCD driver.\n");
> --
> 1.7.2.5



^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: [PATCH 01/15] video: bfin: remove unnecessary platform_set_drvdata()
@ 2013-07-03 11:10 Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 0 replies; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-07-03 11:10 UTC (permalink / raw)
  To: linux-fbdev

On 10:45 Tue 25 Jun     , Jingoo Han wrote:
> On Saturday, May 11, 2013 9:45 PM, Jingoo Han wrote:
> > 
> > The driver core clears the driver data to NULL after device_release
> > or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
> > (device-core: Ensure drvdata = NULL when no driver is bound).
> > Thus, it is not needed to manually clear the device driver data to NULL.
> > 
> > Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> 
> Hi,
> 
> I will squash everything down into one patch with the ACKs,
> and send it again.

fine by me

Best Regards,
J.
> 
> Best regards,
> Jingoo Han
> 
> 
> > ---
> >  drivers/video/bf54x-lq043fb.c    |    1 -
> >  drivers/video/bfin-lq035q1-fb.c  |    2 --
> >  drivers/video/bfin-t350mcqb-fb.c |    2 --
> >  3 files changed, 0 insertions(+), 5 deletions(-)
> > 
> > diff --git a/drivers/video/bf54x-lq043fb.c b/drivers/video/bf54x-lq043fb.c
> > index 2726a5b..87f288b 100644
> > --- a/drivers/video/bf54x-lq043fb.c
> > +++ b/drivers/video/bf54x-lq043fb.c
> > @@ -681,7 +681,6 @@ out3:
> >  out2:
> >  	free_dma(CH_EPPI0);
> >  out1:
> > -	platform_set_drvdata(pdev, NULL);
> > 
> >  	return ret;
> >  }
> > diff --git a/drivers/video/bfin-lq035q1-fb.c b/drivers/video/bfin-lq035q1-fb.c
> > index 29d8c04..be65bae 100644
> > --- a/drivers/video/bfin-lq035q1-fb.c
> > +++ b/drivers/video/bfin-lq035q1-fb.c
> > @@ -759,7 +759,6 @@ static int bfin_lq035q1_probe(struct platform_device *pdev)
> >   out2:
> >  	free_dma(CH_PPI);
> >   out1:
> > -	platform_set_drvdata(pdev, NULL);
> > 
> >  	return ret;
> >  }
> > @@ -788,7 +787,6 @@ static int bfin_lq035q1_remove(struct platform_device *pdev)
> >  	bfin_lq035q1_free_ports(info->disp_info->ppi_mode =
> >  				USE_RGB565_16_BIT_PPI);
> > 
> > -	platform_set_drvdata(pdev, NULL);
> >  	framebuffer_release(fbinfo);
> > 
> >  	dev_info(&pdev->dev, "unregistered LCD driver\n");
> > diff --git a/drivers/video/bfin-t350mcqb-fb.c b/drivers/video/bfin-t350mcqb-fb.c
> > index d46da01..48c0c4e 100644
> > --- a/drivers/video/bfin-t350mcqb-fb.c
> > +++ b/drivers/video/bfin-t350mcqb-fb.c
> > @@ -578,7 +578,6 @@ out3:
> >  out2:
> >  	free_dma(CH_PPI);
> >  out1:
> > -	platform_set_drvdata(pdev, NULL);
> > 
> >  	return ret;
> >  }
> > @@ -608,7 +607,6 @@ static int bfin_t350mcqb_remove(struct platform_device *pdev)
> > 
> >  	bfin_t350mcqb_request_ports(0);
> > 
> > -	platform_set_drvdata(pdev, NULL);
> >  	framebuffer_release(fbinfo);
> > 
> >  	printk(KERN_INFO DRIVER_NAME ": Unregister LCD driver.\n");
> > --
> > 1.7.2.5
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [PATCH 01/15] video: bfin: remove unnecessary platform_set_drvdata()
@ 2013-05-11 12:45 Jingoo Han
  0 siblings, 0 replies; 3+ messages in thread
From: Jingoo Han @ 2013-05-11 12:45 UTC (permalink / raw)
  To: linux-fbdev

The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/video/bf54x-lq043fb.c    |    1 -
 drivers/video/bfin-lq035q1-fb.c  |    2 --
 drivers/video/bfin-t350mcqb-fb.c |    2 --
 3 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/drivers/video/bf54x-lq043fb.c b/drivers/video/bf54x-lq043fb.c
index 2726a5b..87f288b 100644
--- a/drivers/video/bf54x-lq043fb.c
+++ b/drivers/video/bf54x-lq043fb.c
@@ -681,7 +681,6 @@ out3:
 out2:
 	free_dma(CH_EPPI0);
 out1:
-	platform_set_drvdata(pdev, NULL);
 
 	return ret;
 }
diff --git a/drivers/video/bfin-lq035q1-fb.c b/drivers/video/bfin-lq035q1-fb.c
index 29d8c04..be65bae 100644
--- a/drivers/video/bfin-lq035q1-fb.c
+++ b/drivers/video/bfin-lq035q1-fb.c
@@ -759,7 +759,6 @@ static int bfin_lq035q1_probe(struct platform_device *pdev)
  out2:
 	free_dma(CH_PPI);
  out1:
-	platform_set_drvdata(pdev, NULL);
 
 	return ret;
 }
@@ -788,7 +787,6 @@ static int bfin_lq035q1_remove(struct platform_device *pdev)
 	bfin_lq035q1_free_ports(info->disp_info->ppi_mode =
 				USE_RGB565_16_BIT_PPI);
 
-	platform_set_drvdata(pdev, NULL);
 	framebuffer_release(fbinfo);
 
 	dev_info(&pdev->dev, "unregistered LCD driver\n");
diff --git a/drivers/video/bfin-t350mcqb-fb.c b/drivers/video/bfin-t350mcqb-fb.c
index d46da01..48c0c4e 100644
--- a/drivers/video/bfin-t350mcqb-fb.c
+++ b/drivers/video/bfin-t350mcqb-fb.c
@@ -578,7 +578,6 @@ out3:
 out2:
 	free_dma(CH_PPI);
 out1:
-	platform_set_drvdata(pdev, NULL);
 
 	return ret;
 }
@@ -608,7 +607,6 @@ static int bfin_t350mcqb_remove(struct platform_device *pdev)
 
 	bfin_t350mcqb_request_ports(0);
 
-	platform_set_drvdata(pdev, NULL);
 	framebuffer_release(fbinfo);
 
 	printk(KERN_INFO DRIVER_NAME ": Unregister LCD driver.\n");
-- 
1.7.2.5



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-03 11:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-25  1:45 [PATCH 01/15] video: bfin: remove unnecessary platform_set_drvdata() Jingoo Han
  -- strict thread matches above, loose matches on Subject: below --
2013-07-03 11:10 Jean-Christophe PLAGNIOL-VILLARD
2013-05-11 12:45 Jingoo Han

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).