Commit 54b20953 authored by Christoph Hellwig's avatar Christoph Hellwig

[PATCH] remove dasd_get_kdev

Al pointed out that it's unused after my last series of devfs patches.
parent 5f390ed0
...@@ -405,27 +405,6 @@ dasd_device_from_devindex(int devindex) ...@@ -405,27 +405,6 @@ dasd_device_from_devindex(int devindex)
return device; return device;
} }
/*
* Return kdev for a dasd device.
*/
kdev_t
dasd_get_kdev(struct dasd_device *device)
{
struct dasd_devmap *devmap;
int major, minor;
int devno;
devno = _ccw_device_get_device_number(device->cdev);
devmap = dasd_devmap_from_devno(devno);
if (devmap == NULL)
return NODEV;
major = dasd_gendisk_index_major(devmap->devindex);
if (major < 0)
return NODEV;
minor = devmap->devindex % DASD_PER_MAJOR;
return mk_kdev(major, minor);
}
/* /*
* Create a dasd device structure for cdev. * Create a dasd device structure for cdev.
*/ */
......
...@@ -470,7 +470,6 @@ void dasd_devmap_exit(void); ...@@ -470,7 +470,6 @@ void dasd_devmap_exit(void);
struct dasd_device *dasd_create_device(struct ccw_device *); struct dasd_device *dasd_create_device(struct ccw_device *);
void dasd_delete_device(struct dasd_device *); void dasd_delete_device(struct dasd_device *);
kdev_t dasd_get_kdev(struct dasd_device *);
struct dasd_device *dasd_device_from_devindex(int); struct dasd_device *dasd_device_from_devindex(int);
int dasd_parse(void); int dasd_parse(void);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment