core.c (4f2c0a4acffbec01079c28f839422e64ddeff004) | core.c (2a81ada32f0e584fc0c943e0d3a8c9f4fae411d6) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2011-2017, The Linux Foundation 4 */ 5 6#include <linux/kernel.h> 7#include <linux/errno.h> 8#include <linux/slab.h> --- 79 unchanged lines hidden (view full) --- 88 89 if (dev->driver) { 90 sbdrv = to_slim_driver(dev->driver); 91 if (sbdrv->remove) 92 sbdrv->remove(sbdev); 93 } 94} 95 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (c) 2011-2017, The Linux Foundation 4 */ 5 6#include <linux/kernel.h> 7#include <linux/errno.h> 8#include <linux/slab.h> --- 79 unchanged lines hidden (view full) --- 88 89 if (dev->driver) { 90 sbdrv = to_slim_driver(dev->driver); 91 if (sbdrv->remove) 92 sbdrv->remove(sbdev); 93 } 94} 95 |
96static int slim_device_uevent(struct device *dev, struct kobj_uevent_env *env) | 96static int slim_device_uevent(const struct device *dev, struct kobj_uevent_env *env) |
97{ | 97{ |
98 struct slim_device *sbdev = to_slim_device(dev); | 98 const struct slim_device *sbdev = to_slim_device(dev); |
99 100 return add_uevent_var(env, "MODALIAS=slim:%s", dev_name(&sbdev->dev)); 101} 102 103struct bus_type slimbus_bus = { 104 .name = "slimbus", 105 .match = slim_device_match, 106 .probe = slim_device_probe, --- 444 unchanged lines hidden --- | 99 100 return add_uevent_var(env, "MODALIAS=slim:%s", dev_name(&sbdev->dev)); 101} 102 103struct bus_type slimbus_bus = { 104 .name = "slimbus", 105 .match = slim_device_match, 106 .probe = slim_device_probe, --- 444 unchanged lines hidden --- |