Date:2014-07-05 05:39:34 (6 years 1 month ago)
Author:Apelete Seketeli
Commit:c5bd3533d1dda60046c52739d4e85e1977d3f33f
Message:usb: musb: register nop transceiver driver for jz4740

Following the name change of the NOP transceiver driver in commit
4525bee (usb: phy: rename usb_nop_xceiv to usb_phy_generic), the
transceiver driver was no longer operable under its old name.

Register the transceiver driver before calling usb_get_phy() to make
sure we are noticed by an error message if it is not available.

Signed-off-by: Apelete Seketeli <apelete@seketeli.net>
Files: drivers/usb/musb/jz4740.c (3 diffs)

Change Details

drivers/usb/musb/jz4740.c
1919#include <linux/kernel.h>
2020#include <linux/module.h>
2121#include <linux/platform_device.h>
22#include <linux/usb/usb_phy_generic.h>
2223
2324#include "musb_core.h"
2425
...... 
8081
8182static int jz4740_musb_init(struct musb *musb)
8283{
84    usb_phy_generic_register();
8385    musb->xceiv = usb_get_phy(USB_PHY_TYPE_USB2);
8486    if (!musb->xceiv) {
8587        pr_err("HS UDC: no transceiver configured\n");
...... 
182184    struct jz4740_glue *glue = platform_get_drvdata(pdev);
183185
184186    platform_device_unregister(glue->musb);
187    usb_phy_generic_unregister(pdev);
185188    clk_disable_unprepare(glue->clk);
186189
187190    return 0;

Archive Download the corresponding diff file



interactive