aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-03-16 03:55:32 -0400
committerJens Axboe <jens.axboe@oracle.com>2010-03-16 03:55:32 -0400
commit97fedbbe1046b3118f49df249840ca21041eefe4 (patch)
treed888fb0e15600a9bfd08706cee144f2b179e6070
parentc77a5710b7e23847bfdb81fcaa10b585f65c960a (diff)
Remove GENHD_FL_DRIVERFS
This flag is not used, so best discarded. Signed-off-by: NeilBrown <neilb@suse.de> -- Hi Jens, I came across this recently - these are the only two occurances of "GENHD_FL_DRIVERFS" in the kernel, so it cannot be needed. NeilBrown Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r--drivers/scsi/sd.c2
-rw-r--r--include/linux/genhd.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 1dd4d8407694..466fae8ef770 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -2185,7 +2185,7 @@ static void sd_probe_async(void *data, async_cookie_t cookie)
2185 blk_queue_prep_rq(sdp->request_queue, sd_prep_fn); 2185 blk_queue_prep_rq(sdp->request_queue, sd_prep_fn);
2186 2186
2187 gd->driverfs_dev = &sdp->sdev_gendev; 2187 gd->driverfs_dev = &sdp->sdev_gendev;
2188 gd->flags = GENHD_FL_EXT_DEVT | GENHD_FL_DRIVERFS; 2188 gd->flags = GENHD_FL_EXT_DEVT;
2189 if (sdp->removable) 2189 if (sdp->removable)
2190 gd->flags |= GENHD_FL_REMOVABLE; 2190 gd->flags |= GENHD_FL_REMOVABLE;
2191 2191
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index 56b50514ab25..5f2f4c4d8fb0 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -109,7 +109,7 @@ struct hd_struct {
109}; 109};
110 110
111#define GENHD_FL_REMOVABLE 1 111#define GENHD_FL_REMOVABLE 1
112#define GENHD_FL_DRIVERFS 2 112/* 2 is unused */
113#define GENHD_FL_MEDIA_CHANGE_NOTIFY 4 113#define GENHD_FL_MEDIA_CHANGE_NOTIFY 4
114#define GENHD_FL_CD 8 114#define GENHD_FL_CD 8
115#define GENHD_FL_UP 16 115#define GENHD_FL_UP 16