diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 19:46:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-12 19:46:58 -0400 |
commit | 9374430a52dfae5c013b88f7f030c04a6774d410 (patch) | |
tree | ce1ee8eee4e79fbb9486e810278d1092afc74a44 /drivers/block/ub.c | |
parent | 66f49739fe1591197364f2dad1b67b975e8f5e85 (diff) | |
parent | 13f9966b3ba5b45f47f2ea0eb0a90afceedfbb1f (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6: (149 commits)
USB: ohci-pnx4008: Remove unnecessary cast of return value of kzalloc
USB: additions to the quirk list
usb-storage: implement autosuspend
USB: cdc-acm: add new device id to option driver
USB: goku_udc trivial cleanups
USB: usb gadget stack can now -DDEBUG with Kconfig
usb gadget stack: remove usb_ep_*_buffer(), part 2
usb gadget stack: remove usb_ep_*_buffer(), part 1
USB: pxa2xx_udc -- cleanups, mostly removing dma hooks
USB: pxa2xx_udc: use generic gpio layer
USB: quirk for samsung printer
USB: usb/dma doc updates
USB: drivers/usb/storage/unusual_devs.h whitespace cleanup
USB: remove Makefile reference to obsolete OHCI_AT91
USB: io_*: remove bogus termios no change checks
USB: mos7720: remove bogus no termios change check
USB: visor and whiteheat: remove bogus termios change checks
USB: pl2303: remove bogus checks and fix speed support to use tty_get_baud_rate()
USB: mos7840.c: turn this into a serial driver
USB: make the usb_device numa_node get assigned from controller
...
Diffstat (limited to 'drivers/block/ub.c')
-rw-r--r-- | drivers/block/ub.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/block/ub.c b/drivers/block/ub.c index 746a118a9b52..18c8b6c0db20 100644 --- a/drivers/block/ub.c +++ b/drivers/block/ub.c | |||
@@ -1547,10 +1547,8 @@ static void ub_reset_enter(struct ub_dev *sc, int try) | |||
1547 | #endif | 1547 | #endif |
1548 | 1548 | ||
1549 | #if 0 /* We let them stop themselves. */ | 1549 | #if 0 /* We let them stop themselves. */ |
1550 | struct list_head *p; | ||
1551 | struct ub_lun *lun; | 1550 | struct ub_lun *lun; |
1552 | list_for_each(p, &sc->luns) { | 1551 | list_for_each_entry(lun, &sc->luns, link) { |
1553 | lun = list_entry(p, struct ub_lun, link); | ||
1554 | blk_stop_queue(lun->disk->queue); | 1552 | blk_stop_queue(lun->disk->queue); |
1555 | } | 1553 | } |
1556 | #endif | 1554 | #endif |
@@ -1562,7 +1560,6 @@ static void ub_reset_task(struct work_struct *work) | |||
1562 | { | 1560 | { |
1563 | struct ub_dev *sc = container_of(work, struct ub_dev, reset_work); | 1561 | struct ub_dev *sc = container_of(work, struct ub_dev, reset_work); |
1564 | unsigned long flags; | 1562 | unsigned long flags; |
1565 | struct list_head *p; | ||
1566 | struct ub_lun *lun; | 1563 | struct ub_lun *lun; |
1567 | int lkr, rc; | 1564 | int lkr, rc; |
1568 | 1565 | ||
@@ -1608,8 +1605,7 @@ static void ub_reset_task(struct work_struct *work) | |||
1608 | spin_lock_irqsave(sc->lock, flags); | 1605 | spin_lock_irqsave(sc->lock, flags); |
1609 | sc->reset = 0; | 1606 | sc->reset = 0; |
1610 | tasklet_schedule(&sc->tasklet); | 1607 | tasklet_schedule(&sc->tasklet); |
1611 | list_for_each(p, &sc->luns) { | 1608 | list_for_each_entry(lun, &sc->luns, link) { |
1612 | lun = list_entry(p, struct ub_lun, link); | ||
1613 | blk_start_queue(lun->disk->queue); | 1609 | blk_start_queue(lun->disk->queue); |
1614 | } | 1610 | } |
1615 | wake_up(&sc->reset_wait); | 1611 | wake_up(&sc->reset_wait); |
@@ -2348,7 +2344,6 @@ err_alloc: | |||
2348 | static void ub_disconnect(struct usb_interface *intf) | 2344 | static void ub_disconnect(struct usb_interface *intf) |
2349 | { | 2345 | { |
2350 | struct ub_dev *sc = usb_get_intfdata(intf); | 2346 | struct ub_dev *sc = usb_get_intfdata(intf); |
2351 | struct list_head *p; | ||
2352 | struct ub_lun *lun; | 2347 | struct ub_lun *lun; |
2353 | unsigned long flags; | 2348 | unsigned long flags; |
2354 | 2349 | ||
@@ -2403,8 +2398,7 @@ static void ub_disconnect(struct usb_interface *intf) | |||
2403 | /* | 2398 | /* |
2404 | * Unregister the upper layer. | 2399 | * Unregister the upper layer. |
2405 | */ | 2400 | */ |
2406 | list_for_each (p, &sc->luns) { | 2401 | list_for_each_entry(lun, &sc->luns, link) { |
2407 | lun = list_entry(p, struct ub_lun, link); | ||
2408 | del_gendisk(lun->disk); | 2402 | del_gendisk(lun->disk); |
2409 | /* | 2403 | /* |
2410 | * I wish I could do: | 2404 | * I wish I could do: |