summaryrefslogtreecommitdiff
path: root/drivers/base/power
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-04-14 15:53:10 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2021-04-15 18:58:44 +0300
commit4da6d76fb43994e558ceb82619a776e300a35e08 (patch)
tree94b7531f6a16d3904165e346c28f091f9b8a8183 /drivers/base/power
parente4b2897ae1a81cce79a8f5fcceda74c3f31c4b73 (diff)
downloadlinux-4da6d76fb43994e558ceb82619a776e300a35e08.tar.xz
PM: wakeup: use dev_set_name() directly
We have open coded dev_set_name() implementation, replace that with a direct call. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/power')
-rw-r--r--drivers/base/power/wakeup_stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/wakeup_stats.c b/drivers/base/power/wakeup_stats.c
index d638259b829a..5ade7539ac02 100644
--- a/drivers/base/power/wakeup_stats.c
+++ b/drivers/base/power/wakeup_stats.c
@@ -154,7 +154,7 @@ static struct device *wakeup_source_device_create(struct device *parent,
dev_set_drvdata(dev, ws);
device_set_pm_not_required(dev);
- retval = kobject_set_name(&dev->kobj, "wakeup%d", ws->id);
+ retval = dev_set_name(dev, "wakeup%d", ws->id);
if (retval)
goto error;