| commit | d343f4e8d6e4e4237b25b32e4f6a09d1281d4ca3 | [log] [tgz] |
|---|---|---|
| author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | Tue Jun 11 13:41:47 2013 +0300 |
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Jun 11 16:18:04 2013 -0700 |
| tree | 36cf79f5208e948d150bf7fc7c806c0bd9d9709c | |
| parent | 2d8f4447b58bba5f8cb895c07690434c02307eaf [diff] |
usb: chipidea: fix no transceiver case
Since usb phy code does return ERR_PTR() values, make sure that we don't
end up dereferencing them. This is a problem, for example, on platforms
that don't register a phy for chipidea since b7fa5c2a ("usb: phy: return
-ENXIO when PHY layer isn't enabled").
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>