phy-am335x.c (597473720f4dc69749542bfcfed4a927a43d935e) | phy-am335x.c (b267ddf6a5abecad100e7139617ffb12415f9156) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2#include <linux/module.h> 3#include <linux/platform_device.h> 4#include <linux/dma-mapping.h> 5#include <linux/usb/otg.h> 6#include <linux/usb/usb_phy_generic.h> 7#include <linux/slab.h> 8#include <linux/clk.h> --- 43 unchanged lines hidden (view full) --- 52 am_phy->id = of_alias_get_id(pdev->dev.of_node, "phy"); 53 if (am_phy->id < 0) { 54 dev_err(&pdev->dev, "Missing PHY id: %d\n", am_phy->id); 55 return am_phy->id; 56 } 57 58 am_phy->dr_mode = of_usb_get_dr_mode_by_phy(pdev->dev.of_node, -1); 59 | 1// SPDX-License-Identifier: GPL-2.0 2#include <linux/module.h> 3#include <linux/platform_device.h> 4#include <linux/dma-mapping.h> 5#include <linux/usb/otg.h> 6#include <linux/usb/usb_phy_generic.h> 7#include <linux/slab.h> 8#include <linux/clk.h> --- 43 unchanged lines hidden (view full) --- 52 am_phy->id = of_alias_get_id(pdev->dev.of_node, "phy"); 53 if (am_phy->id < 0) { 54 dev_err(&pdev->dev, "Missing PHY id: %d\n", am_phy->id); 55 return am_phy->id; 56 } 57 58 am_phy->dr_mode = of_usb_get_dr_mode_by_phy(pdev->dev.of_node, -1); 59 |
60 ret = usb_phy_gen_create_phy(dev, &am_phy->usb_phy_gen, NULL); | 60 ret = usb_phy_gen_create_phy(dev, &am_phy->usb_phy_gen); |
61 if (ret) 62 return ret; 63 64 am_phy->usb_phy_gen.phy.init = am335x_init; 65 am_phy->usb_phy_gen.phy.shutdown = am335x_shutdown; 66 67 platform_set_drvdata(pdev, am_phy); 68 device_init_wakeup(dev, true); --- 78 unchanged lines hidden --- | 61 if (ret) 62 return ret; 63 64 am_phy->usb_phy_gen.phy.init = am335x_init; 65 am_phy->usb_phy_gen.phy.shutdown = am335x_shutdown; 66 67 platform_set_drvdata(pdev, am_phy); 68 device_init_wakeup(dev, true); --- 78 unchanged lines hidden --- |