scm.c (0898782247ae533d1f4e47a06bc5d4870931b284) scm.c (15f83bb0191261adece5a26bfdf93c6eccdbc0bb)
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

--- 19 unchanged lines hidden (view full) ---

28 return scmdrv->probe ? scmdrv->probe(scmdev) : -ENODEV;
29}
30
31static int scmdev_remove(struct device *dev)
32{
33 struct scm_device *scmdev = to_scm_dev(dev);
34 struct scm_driver *scmdrv = to_scm_drv(dev->driver);
35
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

--- 19 unchanged lines hidden (view full) ---

28 return scmdrv->probe ? scmdrv->probe(scmdev) : -ENODEV;
29}
30
31static int scmdev_remove(struct device *dev)
32{
33 struct scm_device *scmdev = to_scm_dev(dev);
34 struct scm_driver *scmdrv = to_scm_drv(dev->driver);
35
36 return scmdrv->remove ? scmdrv->remove(scmdev) : -ENODEV;
36 if (scmdrv->remove)
37 scmdrv->remove(scmdev);
38
39 return 0;
37}
38
39static int scmdev_uevent(struct device *dev, struct kobj_uevent_env *env)
40{
41 return add_uevent_var(env, "MODALIAS=scm:scmdev");
42}
43
44static struct bus_type scm_bus_type = {

--- 245 unchanged lines hidden ---
40}
41
42static int scmdev_uevent(struct device *dev, struct kobj_uevent_env *env)
43{
44 return add_uevent_var(env, "MODALIAS=scm:scmdev");
45}
46
47static struct bus_type scm_bus_type = {

--- 245 unchanged lines hidden ---