mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
PM / sleep: Drop unused `info' variable
Commit 32e8d689dc
(PM / sleep: trace_device_pm_callback coverage in
dpm_prepare/complete) removed all users of this variable but forgot to
remove the variable itself.
Signed-off-by: Thierry Reding <treding@nvidia.com>
[ rjw: Subject ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
372a12ed9d
commit
fba1fbf563
1 changed files with 5 additions and 13 deletions
|
@ -1556,7 +1556,6 @@ int dpm_suspend(pm_message_t state)
|
||||||
static int device_prepare(struct device *dev, pm_message_t state)
|
static int device_prepare(struct device *dev, pm_message_t state)
|
||||||
{
|
{
|
||||||
int (*callback)(struct device *) = NULL;
|
int (*callback)(struct device *) = NULL;
|
||||||
char *info = NULL;
|
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if (dev->power.syscore)
|
if (dev->power.syscore)
|
||||||
|
@ -1579,24 +1578,17 @@ static int device_prepare(struct device *dev, pm_message_t state)
|
||||||
goto unlock;
|
goto unlock;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dev->pm_domain) {
|
if (dev->pm_domain)
|
||||||
info = "preparing power domain ";
|
|
||||||
callback = dev->pm_domain->ops.prepare;
|
callback = dev->pm_domain->ops.prepare;
|
||||||
} else if (dev->type && dev->type->pm) {
|
else if (dev->type && dev->type->pm)
|
||||||
info = "preparing type ";
|
|
||||||
callback = dev->type->pm->prepare;
|
callback = dev->type->pm->prepare;
|
||||||
} else if (dev->class && dev->class->pm) {
|
else if (dev->class && dev->class->pm)
|
||||||
info = "preparing class ";
|
|
||||||
callback = dev->class->pm->prepare;
|
callback = dev->class->pm->prepare;
|
||||||
} else if (dev->bus && dev->bus->pm) {
|
else if (dev->bus && dev->bus->pm)
|
||||||
info = "preparing bus ";
|
|
||||||
callback = dev->bus->pm->prepare;
|
callback = dev->bus->pm->prepare;
|
||||||
}
|
|
||||||
|
|
||||||
if (!callback && dev->driver && dev->driver->pm) {
|
if (!callback && dev->driver && dev->driver->pm)
|
||||||
info = "preparing driver ";
|
|
||||||
callback = dev->driver->pm->prepare;
|
callback = dev->driver->pm->prepare;
|
||||||
}
|
|
||||||
|
|
||||||
if (callback)
|
if (callback)
|
||||||
ret = callback(dev);
|
ret = callback(dev);
|
||||||
|
|
Loading…
Reference in a new issue