]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/host/r8a66597-hcd.c
USB: r8a66597-hcd: fix driver removing
[linux-2.6-omap-h63xx.git] / drivers / usb / host / r8a66597-hcd.c
index 64fba53c2631bb2fca64e71c40dac64e6478448c..ae8ec4474eb801a1a748d3480cbbcb3fed1ddfd8 100644 (file)
@@ -2126,8 +2126,8 @@ static int __init_or_module r8a66597_remove(struct platform_device *pdev)
        struct usb_hcd          *hcd = r8a66597_to_hcd(r8a66597);
 
        del_timer_sync(&r8a66597->rh_timer);
-       iounmap((void *)r8a66597->reg);
        usb_remove_hcd(hcd);
+       iounmap((void *)r8a66597->reg);
        usb_put_hcd(hcd);
        return 0;
 }