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


Groups > linux.kernel > #1446363 > unrolled thread

[PATCH] usb: ohci-platform: switch over to shared reset

Started byMasahiro Yamada <yamada.masahiro@socionext.com>
First post2016-07-19 13:50 +0200
Last post2016-07-19 13:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] usb: ohci-platform: switch over to shared reset Masahiro Yamada <yamada.masahiro@socionext.com> - 2016-07-19 13:50 +0200

#1446363 — [PATCH] usb: ohci-platform: switch over to shared reset

FromMasahiro Yamada <yamada.masahiro@socionext.com>
Date2016-07-19 13:50 +0200
Subject[PATCH] usb: ohci-platform: switch over to shared reset
Message-ID<rWBHb-3uo-19@gated-at.bofh.it>
The recent update in the reset subsystem requires all reset consumers
to be explicit when requesting reset lines.  For detail, see the log
of commit 3c35f6edc09b ("reset: Reorder inline reset_control_get*()
wrappers").

The devm_reset_control_get_optional() is deprecated, and falls into
the _exclusive variant during the migration, but the reset control
in this driver is apparently shared-tolerate.  Besides, this driver
is for generic platforms, so actually should be able to work with a
shared reset line.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 drivers/usb/host/ohci-platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c
index ae1c988..57ee42d 100644
--- a/drivers/usb/host/ohci-platform.c
+++ b/drivers/usb/host/ohci-platform.c
@@ -198,7 +198,7 @@ static int ohci_platform_probe(struct platform_device *dev)
 
 	}
 
-	priv->rst = devm_reset_control_get_optional(&dev->dev, NULL);
+	priv->rst = devm_reset_control_get_optional_shared(&dev->dev, NULL);
 	if (IS_ERR(priv->rst)) {
 		err = PTR_ERR(priv->rst);
 		if (err == -EPROBE_DEFER)
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web