diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-12 21:18:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-12 21:18:05 -0400 |
commit | d645727bdc2aed8e2e0e9496248f735481b5049a (patch) | |
tree | 079fa3cf369dbf0dc0663fe1b0a62460c522a8e9 /drivers/s390/block/dcssblk.c | |
parent | cd166bd0dde265a97dd9aa8e3451a2646d96d04b (diff) | |
parent | 310d6b671588dd7695cbc0d09d02e41d94a42bed (diff) |
Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6
* 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6: (30 commits)
[S390] wire up sys_perf_counter_open
[S390] wire up sys_rt_tgsigqueueinfo
[S390] ftrace: add system call tracer support
[S390] ftrace: add function graph tracer support
[S390] ftrace: add function trace mcount test support
[S390] ftrace: add dynamic ftrace support
[S390] kprobes: use probe_kernel_write
[S390] maccess: arch specific probe_kernel_write() implementation
[S390] maccess: add weak attribute to probe_kernel_write
[S390] profile_tick called twice
[S390] dasd: forward internal errors to dasd_sleep_on caller
[S390] dasd: sync after async probe
[S390] dasd: check_characteristics cleanup
[S390] dasd: no High Performance FICON in 31-bit mode
[S390] dcssblk: revert devt conversion
[S390] qdio: fix access beyond ARRAY_SIZE of irq_ptr->{in,out}put_qs
[S390] vmalloc: add vmalloc kernel parameter support
[S390] uaccess: use might_fault() instead of might_sleep()
[S390] 3270: lock dependency fixes
[S390] 3270: do not register with tty_register_device
...
Diffstat (limited to 'drivers/s390/block/dcssblk.c')
-rw-r--r-- | drivers/s390/block/dcssblk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/block/dcssblk.c b/drivers/s390/block/dcssblk.c index a4c7ffcd9987..b21caf177e37 100644 --- a/drivers/s390/block/dcssblk.c +++ b/drivers/s390/block/dcssblk.c | |||
@@ -127,7 +127,7 @@ dcssblk_assign_free_minor(struct dcssblk_dev_info *dev_info) | |||
127 | found = 0; | 127 | found = 0; |
128 | // test if minor available | 128 | // test if minor available |
129 | list_for_each_entry(entry, &dcssblk_devices, lh) | 129 | list_for_each_entry(entry, &dcssblk_devices, lh) |
130 | if (minor == MINOR(disk_devt(entry->gd))) | 130 | if (minor == entry->gd->first_minor) |
131 | found++; | 131 | found++; |
132 | if (!found) break; // got unused minor | 132 | if (!found) break; // got unused minor |
133 | } | 133 | } |
@@ -625,7 +625,7 @@ dcssblk_add_store(struct device *dev, struct device_attribute *attr, const char | |||
625 | if (rc) | 625 | if (rc) |
626 | goto release_gd; | 626 | goto release_gd; |
627 | sprintf(dev_info->gd->disk_name, "dcssblk%d", | 627 | sprintf(dev_info->gd->disk_name, "dcssblk%d", |
628 | MINOR(disk_devt(dev_info->gd))); | 628 | dev_info->gd->first_minor); |
629 | list_add_tail(&dev_info->lh, &dcssblk_devices); | 629 | list_add_tail(&dev_info->lh, &dcssblk_devices); |
630 | 630 | ||
631 | if (!try_module_get(THIS_MODULE)) { | 631 | if (!try_module_get(THIS_MODULE)) { |