Currently usb_put_transceiver calls put_device so this is a no-op but it
is better to keep API usage consistent as ohci->transceiver is allocated
with usb_get_transceiver.
While at there remove one extra ohci->transceiver test as the code block
has already tested it.
Signed-off-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
                        dev_dbg(hcd->self.controller, "init %s transceiver, status %d\n",
                                        ohci->transceiver->label, status);
                        if (status) {
-                               if (ohci->transceiver)
-                                       put_device(ohci->transceiver->dev);
+                               usb_put_transceiver(ohci->transceiver);
                                return status;
                        }
                } else {
        usb_remove_hcd(hcd);
        if (ohci->transceiver) {
                (void) otg_set_host(ohci->transceiver->otg, 0);
-               put_device(ohci->transceiver->dev);
+               usb_put_transceiver(ohci->transceiver);
        }
        if (machine_is_omap_osk())
                gpio_free(9);