Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1502091 > unrolled thread

[PATCH -next] soc/qman: Use platform_device_unregister in qman_destroy_portal()

Started byWei Yongjun <weiyj.lk@gmail.com>
First post2016-10-17 17:20 +0200
Last post2016-10-17 17:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH -next] soc/qman: Use platform_device_unregister in qman_destroy_portal() Wei Yongjun <weiyj.lk@gmail.com> - 2016-10-17 17:20 +0200

#1502091 — [PATCH -next] soc/qman: Use platform_device_unregister in qman_destroy_portal()

FromWei Yongjun <weiyj.lk@gmail.com>
Date2016-10-17 17:20 +0200
Subject[PATCH -next] soc/qman: Use platform_device_unregister in qman_destroy_portal()
Message-ID<sthRL-59n-11@gated-at.bofh.it>
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;
 }

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web