Commit 53780b94 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] sd.c

	* set ->queue and ->private_data
	* removed DEVICE_NR and SD_PARTITION
	* switched to new methods
	* switched ->open() and friends to use of ->bd_disk
	* switched request handling to use of ->rq_disk
	* slightly cleaned up
parent c40bcba2
This diff is collapsed.
...@@ -40,6 +40,5 @@ extern kdev_t sd_find_target(void *host, int tgt); ...@@ -40,6 +40,5 @@ extern kdev_t sd_find_target(void *host, int tgt);
#define N_SD_MAJORS 8 #define N_SD_MAJORS 8
#define SD_MAJOR_MASK (N_SD_MAJORS - 1) #define SD_MAJOR_MASK (N_SD_MAJORS - 1)
#define SD_PARTITION(i) (((major(i) & SD_MAJOR_MASK) << 8) | (minor(i) & 255))
#endif #endif
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