[PATCH 049/100] usb: dwc3: omap: bail out early on non-DT boot

2013-02-26 Thread Felipe Balbi
OMAP5 won't support non-DT boot, so instead of: if (node) foo(); return 0; which returns zero even on non-DT boot, we have to bail out early if node isn't a valid pointer: if (!node) return -ENODEV; foo(); return 0; Signed-off-by: Felipe Balbi ba...@ti.com ---

Re: [PATCH 049/100] usb: dwc3: omap: bail out early on non-DT boot

2013-02-26 Thread kishon
Hi Felipe, On Tuesday 26 February 2013 03:04 PM, Felipe Balbi wrote: OMAP5 won't support non-DT boot, so instead of: if (node) foo(); return 0; which returns zero even on non-DT boot, we have to bail out early if node isn't a valid pointer: if (!node) return -ENODEV; foo();

Re: [PATCH 049/100] usb: dwc3: omap: bail out early on non-DT boot

2013-02-26 Thread Felipe Balbi
On Tue, Feb 26, 2013 at 07:17:30PM +0530, kishon wrote: Hi Felipe, On Tuesday 26 February 2013 03:04 PM, Felipe Balbi wrote: OMAP5 won't support non-DT boot, so instead of: if (node) foo(); return 0; which returns zero even on non-DT boot, we have to bail out early if node

Re: [PATCH 049/100] usb: dwc3: omap: bail out early on non-DT boot

2013-02-26 Thread kishon
On Tuesday 26 February 2013 07:20 PM, Felipe Balbi wrote: On Tue, Feb 26, 2013 at 07:17:30PM +0530, kishon wrote: Hi Felipe, On Tuesday 26 February 2013 03:04 PM, Felipe Balbi wrote: OMAP5 won't support non-DT boot, so instead of: if (node) foo(); return 0; which returns zero even