OpenCloudOS-Kernel/drivers/net/can/mscan
Jingoo Han 00e4bbc8cd net: can: use platform_{get,set}_drvdata()
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 after device_release or on probe failure.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2013-06-03 13:13:49 +02:00
..
Kconfig can: Kconfig: convert 'depends on CAN_DEV' into 'if CAN_DEV...endif' block 2013-01-26 16:58:58 +01:00
Makefile net/can/mscan: improve build 2009-11-17 03:57:34 -08:00
mpc5xxx_can.c net: can: use platform_{get,set}_drvdata() 2013-06-03 13:13:49 +02:00
mscan.c can: mscan: remove obsolete variable open_time 2012-11-29 14:30:34 +01:00
mscan.h can: mscan: remove obsolete variable open_time 2012-11-29 14:30:34 +01:00