[PATCH RESEND 2/8] net: ucc_geth: use platform_{get,set}_drvdata()

2013-08-13 Thread Libo Chen
We can use the wrapper functions platform_{get,set}_drvdata() instead of dev_{get,set}_drvdata() with >dev, it is convenient for user. Also, unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL after device_release or on probe failure. Signed-off-by:

[PATCH RESEND 2/8] net: ucc_geth: use platform_{get,set}_drvdata()

2013-08-13 Thread Libo Chen
We can use the wrapper functions platform_{get,set}_drvdata() instead of dev_{get,set}_drvdata() with ofdev-dev, it is convenient for user. Also, unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL after device_release or on probe failure.