auxiliary.c (06d07429858317ded2db7986113a9e0129cd599b) | auxiliary.c (a808878308a8041ae10a151d69e2d22f94cae9f4) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (c) 2019-2020 Intel Corporation 4 * 5 * Please see Documentation/driver-api/auxiliary_bus.rst for more information. 6 */ 7 8#define pr_fmt(fmt) "%s:%s: " fmt, KBUILD_MODNAME, __func__ --- 273 unchanged lines hidden (view full) --- 282 283 if (!auxdev->name) { 284 pr_err("auxiliary_device has a NULL name\n"); 285 return -EINVAL; 286 } 287 288 dev->bus = &auxiliary_bus_type; 289 device_initialize(&auxdev->dev); | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (c) 2019-2020 Intel Corporation 4 * 5 * Please see Documentation/driver-api/auxiliary_bus.rst for more information. 6 */ 7 8#define pr_fmt(fmt) "%s:%s: " fmt, KBUILD_MODNAME, __func__ --- 273 unchanged lines hidden (view full) --- 282 283 if (!auxdev->name) { 284 pr_err("auxiliary_device has a NULL name\n"); 285 return -EINVAL; 286 } 287 288 dev->bus = &auxiliary_bus_type; 289 device_initialize(&auxdev->dev); |
290 mutex_init(&auxdev->sysfs.lock); |
|
290 return 0; 291} 292EXPORT_SYMBOL_GPL(auxiliary_device_init); 293 294/** 295 * __auxiliary_device_add - add an auxiliary bus device 296 * @auxdev: auxiliary bus device to add to the bus 297 * @modname: name of the parent device's driver module --- 122 unchanged lines hidden --- | 291 return 0; 292} 293EXPORT_SYMBOL_GPL(auxiliary_device_init); 294 295/** 296 * __auxiliary_device_add - add an auxiliary bus device 297 * @auxdev: auxiliary bus device to add to the bus 298 * @modname: name of the parent device's driver module --- 122 unchanged lines hidden --- |