scm_drv.c (498495dba268b20e8eadd7fe93c140c68b6cc9d2) scm_drv.c (15f83bb0191261adece5a26bfdf93c6eccdbc0bb)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device driver for s390 storage class memory.
4 *
5 * Copyright IBM Corp. 2012
6 * Author(s): Sebastian Ott <sebott@linux.vnet.ibm.com>
7 */
8

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

55 kfree(bdev);
56 goto out;
57 }
58
59out:
60 return ret;
61}
62
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device driver for s390 storage class memory.
4 *
5 * Copyright IBM Corp. 2012
6 * Author(s): Sebastian Ott <sebott@linux.vnet.ibm.com>
7 */
8

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

55 kfree(bdev);
56 goto out;
57 }
58
59out:
60 return ret;
61}
62
63static int scm_remove(struct scm_device *scmdev)
63static void scm_remove(struct scm_device *scmdev)
64{
65 struct scm_blk_dev *bdev = dev_get_drvdata(&scmdev->dev);
66
67 scm_blk_dev_cleanup(bdev);
68 dev_set_drvdata(&scmdev->dev, NULL);
69 kfree(bdev);
64{
65 struct scm_blk_dev *bdev = dev_get_drvdata(&scmdev->dev);
66
67 scm_blk_dev_cleanup(bdev);
68 dev_set_drvdata(&scmdev->dev, NULL);
69 kfree(bdev);
70
71 return 0;
72}
73
74static struct scm_driver scm_drv = {
75 .drv = {
76 .name = "scm_block",
77 .owner = THIS_MODULE,
78 },
79 .notify = scm_notify,

--- 14 unchanged lines hidden ---
70}
71
72static struct scm_driver scm_drv = {
73 .drv = {
74 .name = "scm_block",
75 .owner = THIS_MODULE,
76 },
77 .notify = scm_notify,

--- 14 unchanged lines hidden ---