Re: [PATCH V2] hwrng: use platform_{get,set}_drvdata()

2013-06-05 Thread Herbert Xu
On Wed, May 29, 2013 at 09:47:29AM +0900, Jingoo Han wrote: > Use the wrapper functions for getting and setting the driver data using > platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, > so we can directly pass a struct platform_device. > > Also, unnecessary dev_set_drvdat

[PATCH V2] hwrng: use platform_{get,set}_drvdata()

2013-05-28 Thread Jingoo Han
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, so we can directly pass a struct platform_device. Also, unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL