diff options
| author | Suniel Mahesh <[email protected]> | 2017-10-04 07:45:37 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-10-04 08:26:34 +0000 |
| commit | 006e202fe6f91c9dd26f754ff0c7f38f2363aaf8 (patch) | |
| tree | 9238a69ba65cde14c74af7d20f4c32211e0d0e76 /net/tipc/msg.c | |
| parent | staging: android: TODO: Removing an invalid issue (diff) | |
| download | kernel-006e202fe6f91c9dd26f754ff0c7f38f2363aaf8.tar.gz kernel-006e202fe6f91c9dd26f754ff0c7f38f2363aaf8.zip | |
staging: ccree: Convert to platform_{get,set}_drvdata()
Platform devices are expected to use wrapper functions,
platform_{get,set}_drvdata() with platform_device as argument,
for getting and setting the driver data. dev_{get,set}_drvdata()
are using &plat_dev->dev.
For wrapper functions we can directly pass a struct platform_device.
dev_set_drvdata() is redundant and therefore removed. The driver core
clears the driver data to NULL after device_release or on probe failure.
Signed-off-by: Suniel Mahesh <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/tipc/msg.c')
0 files changed, 0 insertions, 0 deletions
