uio: uio_pruss: remove unnecessary platform_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Thu, 22 Aug 2013 02:09:12 +0000 (11:09 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Aug 2013 04:39:16 +0000 (21:39 -0700)
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>
drivers/uio/uio_pruss.c

index 21f7a72301e43536867b1353cc79541652e5b05b..df7534613e5e8b85b62ac4d0b401f26862b21530 100644 (file)
@@ -224,7 +224,6 @@ static int pruss_remove(struct platform_device *dev)
        struct uio_pruss_dev *gdev = platform_get_drvdata(dev);
 
        pruss_cleanup(dev, gdev);
-       platform_set_drvdata(dev, NULL);
        return 0;
 }