can: remove unnecessary pci_set_drvdata()
Get series with b4
b4 am '00a801ceae15$bb3daa50$31b8fef0$%[email protected]'Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | can: c_can: remove unnecessary pci_set_drvdata()drivers/ | +0 | 0 replies | |
| 2/3 | can: pch_can: remove unnecessary pci_set_drvdata()drivers/ | +0 | 0 replies | |
| 3/3 | can: sja1000: remove unnecessary pci_set_drvdata()drivers/ drivers/ drivers/ +1 more | +0 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] can: remove unnecessary pci_set_drvdata()
Since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d (device-core: Ensure drvdata = NULL when no driver is bound), the driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL.
--- drivers/net/can/c_can/c_can_pci.c | 2 -- drivers/net/can/pch_can.c | 1 - drivers/net/can/sja1000/ems_pci.c | 1 - drivers/net/can/sja1000/kvaser_pci.c | 1 - drivers/net/can/sja1000/peak_pci.c | 2 -- drivers/net/can/sja1000/plx_pci.c | 1 - 6 files changed, 8 deletions(-)