From: Jingoo Han <jg1.han@samsung.com>
To: 'Marc Kleine-Budde' <mkl@pengutronix.de>
Cc: 'Wolfgang Grandegger' <wg@grandegger.com>,
linux-can@vger.kernel.org,
'Toshiharu Okada' <toshiharu-linux@dsn.okisemi.com>,
'Tomoya MORINAGA' <tomoya.rohm@gmail.com>,
'Jingoo Han' <jg1.han@samsung.com>
Subject: [PATCH 2/3] can: pch_can: remove unnecessary pci_set_drvdata()
Date: Tue, 10 Sep 2013 20:10:35 +0900 [thread overview]
Message-ID: <00aa01ceae16$5f9f1de0$1edd59a0$%han@samsung.com> (raw)
In-Reply-To: <00a801ceae15$bb3daa50$31b8fef0$%han@samsung.com>
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.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/net/can/pch_can.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/can/pch_can.c b/drivers/net/can/pch_can.c
index 5c314a9..5f0e9b3 100644
--- a/drivers/net/can/pch_can.c
+++ b/drivers/net/can/pch_can.c
@@ -964,7 +964,6 @@ static void pch_can_remove(struct pci_dev *pdev)
pci_disable_msi(priv->dev);
pci_release_regions(pdev);
pci_disable_device(pdev);
- pci_set_drvdata(pdev, NULL);
pch_can_reset(priv);
pci_iounmap(pdev, priv->regs);
free_candev(priv->ndev);
--
1.7.10.4
next prev parent reply other threads:[~2013-09-10 11:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-10 11:05 [PATCH 0/3] can: remove unnecessary pci_set_drvdata() Jingoo Han
2013-09-10 11:08 ` [PATCH 1/3] can: c_can: " Jingoo Han
2013-09-10 11:10 ` Jingoo Han [this message]
2013-09-10 11:12 ` [PATCH 3/3] can: sja1000: " Jingoo Han
2013-09-10 11:17 ` [PATCH 0/3] can: " Marc Kleine-Budde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='00aa01ceae16$5f9f1de0$1edd59a0$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=linux-can@vger.kernel.org \
--cc=mkl@pengutronix.de \
--cc=tomoya.rohm@gmail.com \
--cc=toshiharu-linux@dsn.okisemi.com \
--cc=wg@grandegger.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).