Skip to content

Commit

Permalink
Merge branches 'pm-domains', 'pm-docs' and 'pm-devfreq'
Browse files Browse the repository at this point in the history
* pm-domains:
  PM / domains: Fix 'may be used uninitialized' build warning

* pm-docs:
  PM / docs: Drop confusing kernel-doc references from infrastructure.rst

* pm-devfreq:
  PM / devfreq: exynos-bus: Fix the wrong return value
  PM / devfreq: Fix the bug of devfreq_add_device when governor is NULL
  MAINTAINERS: Add myself as reviewer for DEVFREQ subsystem support
  • Loading branch information
rafaeljw committed Jan 6, 2017
4 parents 3baad65 + ab51e6b + 6e092c8 + 32dd773 commit 7e2b9d8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 21 deletions.
15 changes: 0 additions & 15 deletions Documentation/driver-api/infrastructure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,6 @@ Device Drivers DMA Management
.. kernel-doc:: drivers/base/dma-mapping.c
:export:

Device Drivers Power Management
-------------------------------

.. kernel-doc:: drivers/base/power/main.c
:export:

Device Drivers ACPI Support
---------------------------

.. kernel-doc:: drivers/acpi/scan.c
:export:

.. kernel-doc:: drivers/acpi/scan.c
:internal:

Device drivers PnP support
--------------------------

Expand Down
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -3800,6 +3800,7 @@ F: include/linux/devcoredump.h
DEVICE FREQUENCY (DEVFREQ)
M: MyungJoo Ham <[email protected]>
M: Kyungmin Park <[email protected]>
R: Chanwoo Choi <[email protected]>
L: [email protected]
T: git git://git.kernel.org/pub/scm/linux/kernel/git/mzx/devfreq.git
S: Maintained
Expand Down
1 change: 1 addition & 0 deletions drivers/base/power/domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ static int genpd_runtime_resume(struct device *dev)

out:
/* Measure resume latency. */
time_start = 0;
if (timed && runtime_pm)
time_start = ktime_get();

Expand Down
15 changes: 10 additions & 5 deletions drivers/devfreq/devfreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,11 +593,16 @@ struct devfreq *devfreq_add_device(struct device *dev,
list_add(&devfreq->node, &devfreq_list);

governor = find_devfreq_governor(devfreq->governor_name);
if (!IS_ERR(governor))
devfreq->governor = governor;
if (devfreq->governor)
err = devfreq->governor->event_handler(devfreq,
DEVFREQ_GOV_START, NULL);
if (IS_ERR(governor)) {
dev_err(dev, "%s: Unable to find governor for the device\n",
__func__);
err = PTR_ERR(governor);
goto err_init;
}

devfreq->governor = governor;
err = devfreq->governor->event_handler(devfreq, DEVFREQ_GOV_START,
NULL);
if (err) {
dev_err(dev, "%s: Unable to start governor for the device\n",
__func__);
Expand Down
2 changes: 1 addition & 1 deletion drivers/devfreq/exynos-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ static int exynos_bus_probe(struct platform_device *pdev)
if (IS_ERR(bus->devfreq)) {
dev_err(dev,
"failed to add devfreq dev with passive governor\n");
ret = -EPROBE_DEFER;
ret = PTR_ERR(bus->devfreq);
goto err;
}

Expand Down

0 comments on commit 7e2b9d8

Please sign in to comment.