diff options
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/power/domain.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 2a9f4c5025e3..18cc68d058d6 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c | |||
@@ -1457,39 +1457,6 @@ int __pm_genpd_add_device(struct generic_pm_domain *genpd, struct device *dev, | |||
1457 | } | 1457 | } |
1458 | 1458 | ||
1459 | /** | 1459 | /** |
1460 | * __pm_genpd_of_add_device - Add a device to an I/O PM domain. | ||
1461 | * @genpd_node: Device tree node pointer representing a PM domain to which the | ||
1462 | * the device is added to. | ||
1463 | * @dev: Device to be added. | ||
1464 | * @td: Set of PM QoS timing parameters to attach to the device. | ||
1465 | */ | ||
1466 | int __pm_genpd_of_add_device(struct device_node *genpd_node, struct device *dev, | ||
1467 | struct gpd_timing_data *td) | ||
1468 | { | ||
1469 | struct generic_pm_domain *genpd = NULL, *gpd; | ||
1470 | |||
1471 | dev_dbg(dev, "%s()\n", __func__); | ||
1472 | |||
1473 | if (IS_ERR_OR_NULL(genpd_node) || IS_ERR_OR_NULL(dev)) | ||
1474 | return -EINVAL; | ||
1475 | |||
1476 | mutex_lock(&gpd_list_lock); | ||
1477 | list_for_each_entry(gpd, &gpd_list, gpd_list_node) { | ||
1478 | if (gpd->of_node == genpd_node) { | ||
1479 | genpd = gpd; | ||
1480 | break; | ||
1481 | } | ||
1482 | } | ||
1483 | mutex_unlock(&gpd_list_lock); | ||
1484 | |||
1485 | if (!genpd) | ||
1486 | return -EINVAL; | ||
1487 | |||
1488 | return __pm_genpd_add_device(genpd, dev, td); | ||
1489 | } | ||
1490 | |||
1491 | |||
1492 | /** | ||
1493 | * __pm_genpd_name_add_device - Find I/O PM domain and add a device to it. | 1460 | * __pm_genpd_name_add_device - Find I/O PM domain and add a device to it. |
1494 | * @domain_name: Name of the PM domain to add the device to. | 1461 | * @domain_name: Name of the PM domain to add the device to. |
1495 | * @dev: Device to be added. | 1462 | * @dev: Device to be added. |