* [PATCH -next] soc/qman: Use platform_device_unregister in qman_destroy_portal()
@ 2016-10-17 15:14 Wei Yongjun
0 siblings, 0 replies; only message in thread
From: Wei Yongjun @ 2016-10-17 15:14 UTC (permalink / raw)
To: Scott Wood, Roy Pledge, Claudiu Manoil; +Cc: Wei Yongjun, linux-kernel
From: Wei Yongjun <weiyongjun1@huawei.com>
platform_device_unregister() only calls platform_device_del() and
platform_device_put(), thus use platform_device_unregister() to
simplify the code.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
drivers/soc/fsl/qbman/qman.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/soc/fsl/qbman/qman.c b/drivers/soc/fsl/qbman/qman.c
index 119054b..4cd7eff 100644
--- a/drivers/soc/fsl/qbman/qman.c
+++ b/drivers/soc/fsl/qbman/qman.c
@@ -1321,8 +1321,7 @@ static void qman_destroy_portal(struct qman_portal *qm)
qm_dqrr_finish(&qm->p);
qm_eqcr_finish(&qm->p);
- platform_device_del(qm->pdev);
- platform_device_put(qm->pdev);
+ platform_device_unregister(qm->pdev);
qm->config = NULL;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-10-17 15:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-17 15:14 [PATCH -next] soc/qman: Use platform_device_unregister in qman_destroy_portal() Wei Yongjun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®