diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-04-14 15:53:10 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-04-15 11:48:01 +0300 |
commit | bd2a895f21eb9195a42e52e5f451dccc854cc71d (patch) | |
tree | 443ed99d97131517d7e8940c1022edea718449e0 /drivers/base | |
parent | b622b24519f5b008f6d4e20e5675eaffa8fbd87b (diff) | |
download | linux-bd2a895f21eb9195a42e52e5f451dccc854cc71d.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>
Link: https://lore.kernel.org/r/20210414125310.10900-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/power/wakeup_stats.c | 2 |
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; |