scm.c (762f99f4f3cb41a775b5157dd761217beba65873) | scm.c (2a81ada32f0e584fc0c943e0d3a8c9f4fae411d6) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Recognize and maintain s390 storage class memory. 4 * 5 * Copyright IBM Corp. 2012 6 * Author(s): Sebastian Ott <sebott@linux.vnet.ibm.com> 7 */ 8 --- 23 unchanged lines hidden (view full) --- 32{ 33 struct scm_device *scmdev = to_scm_dev(dev); 34 struct scm_driver *scmdrv = to_scm_drv(dev->driver); 35 36 if (scmdrv->remove) 37 scmdrv->remove(scmdev); 38} 39 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Recognize and maintain s390 storage class memory. 4 * 5 * Copyright IBM Corp. 2012 6 * Author(s): Sebastian Ott <sebott@linux.vnet.ibm.com> 7 */ 8 --- 23 unchanged lines hidden (view full) --- 32{ 33 struct scm_device *scmdev = to_scm_dev(dev); 34 struct scm_driver *scmdrv = to_scm_drv(dev->driver); 35 36 if (scmdrv->remove) 37 scmdrv->remove(scmdev); 38} 39 |
40static int scmdev_uevent(struct device *dev, struct kobj_uevent_env *env) | 40static int scmdev_uevent(const struct device *dev, struct kobj_uevent_env *env) |
41{ 42 return add_uevent_var(env, "MODALIAS=scm:scmdev"); 43} 44 45static struct bus_type scm_bus_type = { 46 .name = "scm", 47 .probe = scmdev_probe, 48 .remove = scmdev_remove, --- 242 unchanged lines hidden --- | 41{ 42 return add_uevent_var(env, "MODALIAS=scm:scmdev"); 43} 44 45static struct bus_type scm_bus_type = { 46 .name = "scm", 47 .probe = scmdev_probe, 48 .remove = scmdev_remove, --- 242 unchanged lines hidden --- |