mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 11:03:37 +00:00
The driver core clears the driver data to NULL after device_release
or on probe failure, since commit 0998d06310
(device-core: Ensure drvdata = NULL when no driver is bound).
Thus, it is not needed to manually clear the device driver data to NULL.
Signed-off-by: Jingoo Han <[email protected]>
Cc: Sylwester Nawrocki <[email protected]>
Acked-by: Kuninori Morimoto <[email protected]>
Acked-by: Shawn Guo <[email protected]>
Reviewed-by: H Hartley Sweeten <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>