Skip to content

can: remove unnecessary pci_set_drvdata()

Jingoo Han linux-can 1 version In review

Get series with b4
b4 am '00a801ceae15$bb3daa50$31b8fef0$%[email protected]'

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3can: c_can: remove unnecessary pci_set_drvdata()drivers/net/can/c_can/c_can_pci.c+0 -20 replies
2/3can: pch_can: remove unnecessary pci_set_drvdata()drivers/net/can/pch_can.c+0 -10 replies
3/3can: sja1000: remove unnecessary pci_set_drvdata()drivers/net/can/sja1000/ems_pci.c drivers/net/can/sja1000/kvaser_pci.c drivers/net/can/sja1000/peak_pci.c +1 more+0 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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(-)