Re: [PATCH 1/2] usb: dwc3: use local copy of resource to fix-up register offset

2018-03-15 Thread Masami Hiramatsu
On Thu, 15 Mar 2018 20:39:57 +0900 Masahiro Yamada wrote: > It is not a good idea to modify the resource from the platform device. > Modify its local copy to pass it to devm_ioremap_resource() so that we > do not need to restore it in the failure path and the

[PATCH 1/2] usb: dwc3: use local copy of resource to fix-up register offset

2018-03-15 Thread Masahiro Yamada
It is not a good idea to modify the resource from the platform device. Modify its local copy to pass it to devm_ioremap_resource() so that we do not need to restore it in the failure path and the remove hook. Signed-off-by: Masahiro Yamada ---