2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 20:53:53 +08:00
linux-next/drivers/net/can/cc770
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
..
cc770_isa.c net: can: use platform_{get,set}_drvdata() 2013-06-03 13:13:49 +02:00
cc770_platform.c net: can: use platform_{get,set}_drvdata() 2013-06-03 13:13:49 +02:00
cc770.c can: mark bittiming_const pointer in struct can_priv as const 2012-07-20 12:31:05 +02:00
cc770.h can: cc770: add driver core for the Bosch CC770 and Intel AN82527 2011-12-01 13:09:31 -05:00
Kconfig can: Kconfig: convert 'depends on CAN_DEV' into 'if CAN_DEV...endif' block 2013-01-26 16:58:58 +01:00
Makefile can: cc770: add platform bus driver for the CC770 and AN82527 2011-12-01 13:09:31 -05:00