platform.c (ed32f8d42cee118b075e4372a55c7739a11094b2) | platform.c (36f3313d6bff91ab2a9e47698c27d15363640a4e) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * platform.c - platform 'pseudo' bus for legacy devices 4 * 5 * Copyright (c) 2002-3 Patrick Mochel 6 * Copyright (c) 2002-3 Open Source Development Labs 7 * 8 * Please see Documentation/driver-api/driver-model/platform.rst for more --- 1183 unchanged lines hidden (view full) --- 1192 .dev_groups = platform_dev_groups, 1193 .match = platform_match, 1194 .uevent = platform_uevent, 1195 .dma_configure = platform_dma_configure, 1196 .pm = &platform_dev_pm_ops, 1197}; 1198EXPORT_SYMBOL_GPL(platform_bus_type); 1199 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * platform.c - platform 'pseudo' bus for legacy devices 4 * 5 * Copyright (c) 2002-3 Patrick Mochel 6 * Copyright (c) 2002-3 Open Source Development Labs 7 * 8 * Please see Documentation/driver-api/driver-model/platform.rst for more --- 1183 unchanged lines hidden (view full) --- 1192 .dev_groups = platform_dev_groups, 1193 .match = platform_match, 1194 .uevent = platform_uevent, 1195 .dma_configure = platform_dma_configure, 1196 .pm = &platform_dev_pm_ops, 1197}; 1198EXPORT_SYMBOL_GPL(platform_bus_type); 1199 |
1200/** 1201 * platform_find_device_by_driver - Find a platform device with a given 1202 * driver. 1203 * @start: The device to start the search from. 1204 * @drv: The device driver to look for. 1205 */ 1206struct device *platform_find_device_by_driver(struct device *start, 1207 const struct device_driver *drv) 1208{ 1209 return bus_find_device(&platform_bus_type, start, drv, 1210 (void *)platform_match); 1211} 1212EXPORT_SYMBOL_GPL(platform_find_device_by_driver); 1213 |
|
1200int __init platform_bus_init(void) 1201{ 1202 int error; 1203 1204 early_platform_cleanup(); 1205 1206 error = device_register(&platform_bus); 1207 if (error) { --- 295 unchanged lines hidden --- | 1214int __init platform_bus_init(void) 1215{ 1216 int error; 1217 1218 early_platform_cleanup(); 1219 1220 error = device_register(&platform_bus); 1221 if (error) { --- 295 unchanged lines hidden --- |