video: bfin: remove unnecessary platform_set_drvdata()
Quoted 7 lines · Jingoo Han
The driver core clears the driver data to NULL after
device_releaseor on probe failure, since commit0998d0631001288a5974afc0b2a5f568bcdecb4d(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 <[email protected]>
Hi,
I will squash everything down into one patch with the ACKs, and send it again.
Best regards,
Jingoo Han
Quoted 60 lines
--- 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(-)drivers/video/bf54x-lq043fb.c +0
-1@@ -681,7 +681,6 @@ out3: out2:free_dma (CH_EPPI0 ); out1: -platform_set_drvdata (pdev,NULL );return ret; }drivers/video/bfin-lq035q1-fb.c +0
-2@@ -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" );drivers/video/bfin-t350mcqb-fb.c +0
-3@@ -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