From: Yoshihiro Shimoda Date: Fri, 5 Oct 2007 06:53:12 +0000 (+0900) Subject: USB: r8a66597-hcd: fix driver removing X-Git-Tag: v2.6.24-rc1~1395^2~23 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ca0677a29bddee35918bf3c0c55cc3badd69079e;p=linux-2.6-omap-h63xx.git USB: r8a66597-hcd: fix driver removing Fixed the problem that accessed register of this controller after having called iounmap(). Signed-off-by: Yoshihiro Shimoda Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c index 64fba53c263..ae8ec4474eb 100644 --- a/drivers/usb/host/r8a66597-hcd.c +++ b/drivers/usb/host/r8a66597-hcd.c @@ -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; }