[PATCH 17/53] power: supply: mt6370: Switch to create*_workqueue2()

Bart Van Assche posted 53 patches 1 year, 5 months ago
Only 52 patches received!
[PATCH 17/53] power: supply: mt6370: Switch to create*_workqueue2()
Posted by Bart Van Assche 1 year, 5 months ago
Prepare for removal of the create*_workqueue() macros.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
 drivers/power/supply/mt6370-charger.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/supply/mt6370-charger.c b/drivers/power/supply/mt6370-charger.c
index e24fce087d80..8843da4dda92 100644
--- a/drivers/power/supply/mt6370-charger.c
+++ b/drivers/power/supply/mt6370-charger.c
@@ -908,7 +908,7 @@ static int mt6370_chg_probe(struct platform_device *pdev)
 
 	priv->attach = MT6370_ATTACH_STAT_DETACH;
 
-	priv->wq = create_singlethread_workqueue(dev_name(priv->dev));
+	priv->wq = create_singlethread_workqueue2("%s", dev_name(priv->dev));
 	if (!priv->wq)
 		return dev_err_probe(dev, -ENOMEM,
 				     "Failed to create workqueue\n");