Lines Matching +full:pm +full:- +full:bus
2 * Simple Power-Managed Bus Driver
4 * Copyright (C) 2014-2015 Glider bvba
18 const struct device *dev = &pdev->dev; in simple_pm_bus_probe()
20 struct device_node *np = dev->of_node; in simple_pm_bus_probe()
25 * transparent bus device which has a different compatible string in simple_pm_bus_probe()
27 * of the simple-pm-bus tasks for these devices, so return early. in simple_pm_bus_probe()
29 if (pdev->driver_override) in simple_pm_bus_probe()
32 match = of_match_device(dev->driver->of_match_table, dev); in simple_pm_bus_probe()
34 * These are transparent bus devices (not simple-pm-bus matches) that in simple_pm_bus_probe()
40 if (match && match->data) { in simple_pm_bus_probe()
41 if (of_property_match_string(np, "compatible", match->compatible) == 0) in simple_pm_bus_probe()
44 return -ENODEV; in simple_pm_bus_probe()
47 dev_dbg(&pdev->dev, "%s\n", __func__); in simple_pm_bus_probe()
49 pm_runtime_enable(&pdev->dev); in simple_pm_bus_probe()
52 of_platform_populate(np, NULL, lookup, &pdev->dev); in simple_pm_bus_probe()
59 const void *data = of_device_get_match_data(&pdev->dev); in simple_pm_bus_remove()
61 if (pdev->driver_override || data) in simple_pm_bus_remove()
64 dev_dbg(&pdev->dev, "%s\n", __func__); in simple_pm_bus_remove()
66 pm_runtime_disable(&pdev->dev); in simple_pm_bus_remove()
70 #define ONLY_BUS ((void *) 1) /* Match if the device is only a bus. */
73 { .compatible = "simple-pm-bus", },
74 { .compatible = "simple-bus", .data = ONLY_BUS },
75 { .compatible = "simple-mfd", .data = ONLY_BUS },
77 { .compatible = "arm,amba-bus", .data = ONLY_BUS },
86 .name = "simple-pm-bus",
93 MODULE_DESCRIPTION("Simple Power-Managed Bus Driver");