Commit:     71ee9a6c6c882c6293d7f2f96d2cd6d78beaf093
Parent:     a3b53514bd89c77c6aaf80b0ea37249d79c3f3bd
Author:     Paul Mundt <[EMAIL PROTECTED]>
AuthorDate: Tue Aug 7 19:21:42 2007 +0900
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Wed Aug 22 14:27:45 2007 -0700

    usb: r8a66597-hcd: fix up error path.
    Currently when registration fails we're left with a stray reference to
    release_mem_region(), this leads to the following case:
        r8a66597_hcd r8a66597_hcd: irq 13, io base 0x18040000
        drivers/usb/host/r8a66597-hcd.c: register access fail.
        r8a66597_hcd r8a66597_hcd: startup error -6
        r8a66597_hcd r8a66597_hcd: USB bus 1 deregistered
        drivers/usb/host/r8a66597-hcd.c: Failed to add hcd
        Trying to free nonexistent resource <0000000018040000-0000000018040000>
    This fixes it up.
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 drivers/usb/host/r8a66597-hcd.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c
index d60f198..40a1de4 100644
--- a/drivers/usb/host/r8a66597-hcd.c
+++ b/drivers/usb/host/r8a66597-hcd.c
@@ -2208,8 +2208,6 @@ static int __init r8a66597_probe(struct platform_device 
        if (reg)
-       if (res)
-               release_mem_region(res->start, 1);
        return ret;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to