aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/uio
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-08-21 22:09:12 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-28 00:39:16 -0400
commit440ab3b3039834508250975d07d52d41883cf520 (patch)
treea6450c29b0c0e1cbb61667d83016f92e4aaef2c0 /drivers/uio
parentc06ca9ae8445fbda04f2d8b55863c84e43acde31 (diff)
uio: uio_pruss: remove unnecessary platform_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/uio')
-rw-r--r--drivers/uio/uio_pruss.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/uio/uio_pruss.c b/drivers/uio/uio_pruss.c
index 21f7a72301e4..df7534613e5e 100644
--- a/drivers/uio/uio_pruss.c
+++ b/drivers/uio/uio_pruss.c
@@ -224,7 +224,6 @@ static int pruss_remove(struct platform_device *dev)
224 struct uio_pruss_dev *gdev = platform_get_drvdata(dev); 224 struct uio_pruss_dev *gdev = platform_get_drvdata(dev);
225 225
226 pruss_cleanup(dev, gdev); 226 pruss_cleanup(dev, gdev);
227 platform_set_drvdata(dev, NULL);
228 return 0; 227 return 0;
229} 228}
230 229