phy-keystone.c (1bdd3e05a0a3b4a97ea88bc46fef8fb265c8b94c) phy-keystone.c (b267ddf6a5abecad100e7139617ffb12415f9156)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * phy-keystone - USB PHY, talking to dwc3 controller in Keystone.
4 *
5 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
6 *
7 * Author: WingMan Kwok <w-kwok2@ti.com>
8 */

--- 62 unchanged lines hidden (view full) ---

71 k_phy = devm_kzalloc(dev, sizeof(*k_phy), GFP_KERNEL);
72 if (!k_phy)
73 return -ENOMEM;
74
75 k_phy->phy_ctrl = devm_platform_ioremap_resource(pdev, 0);
76 if (IS_ERR(k_phy->phy_ctrl))
77 return PTR_ERR(k_phy->phy_ctrl);
78
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * phy-keystone - USB PHY, talking to dwc3 controller in Keystone.
4 *
5 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
6 *
7 * Author: WingMan Kwok <w-kwok2@ti.com>
8 */

--- 62 unchanged lines hidden (view full) ---

71 k_phy = devm_kzalloc(dev, sizeof(*k_phy), GFP_KERNEL);
72 if (!k_phy)
73 return -ENOMEM;
74
75 k_phy->phy_ctrl = devm_platform_ioremap_resource(pdev, 0);
76 if (IS_ERR(k_phy->phy_ctrl))
77 return PTR_ERR(k_phy->phy_ctrl);
78
79 ret = usb_phy_gen_create_phy(dev, &k_phy->usb_phy_gen, NULL);
79 ret = usb_phy_gen_create_phy(dev, &k_phy->usb_phy_gen);
80 if (ret)
81 return ret;
82
83 k_phy->usb_phy_gen.phy.init = keystone_usbphy_init;
84 k_phy->usb_phy_gen.phy.shutdown = keystone_usbphy_shutdown;
85
86 platform_set_drvdata(pdev, k_phy);
87

--- 33 unchanged lines hidden ---
80 if (ret)
81 return ret;
82
83 k_phy->usb_phy_gen.phy.init = keystone_usbphy_init;
84 k_phy->usb_phy_gen.phy.shutdown = keystone_usbphy_shutdown;
85
86 platform_set_drvdata(pdev, k_phy);
87

--- 33 unchanged lines hidden ---