[balbi-usb:gadget 19/61] drivers/usb/gadget/mv_udc_core.c:1124:16: error: 'struct mv_usb_platform_data' has no member named 'phy_init'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git gadget
head:   7620f5f22e9317ab26c0fdbdd15c5e9ed972ef89
commit: 84b140524c107fb4f4fe618509bc067245c9d878 [19/61] usb: phy: mv_usb2: add PHY driver for marvell usb2 controller
config: make ARCH=x86_64 allmodconfig

All error/warnings:

   drivers/usb/gadget/mv_udc_core.c: In function 'mv_udc_enable_internal':
>> drivers/usb/gadget/mv_udc_core.c:1124:16: error: 'struct mv_usb_platform_data' has no member named 'phy_init'
   drivers/usb/gadget/mv_udc_core.c:1125:22: error: 'struct mv_usb_platform_data' has no member named 'phy_init'
   drivers/usb/gadget/mv_udc_core.c: In function 'mv_udc_disable_internal':
>> drivers/usb/gadget/mv_udc_core.c:1150:17: error: 'struct mv_usb_platform_data' has no member named 'phy_deinit'
   drivers/usb/gadget/mv_udc_core.c:1151:14: error: 'struct mv_usb_platform_data' has no member named 'phy_deinit'
--
   drivers/usb/phy/mv_usb2_phy.c: In function 'u2o_set':
   drivers/usb/phy/mv_usb2_phy.c:151:2: error: implicit declaration of function 'writel_relaxed' [-Werror=implicit-function-declaration]
   drivers/usb/phy/mv_usb2_phy.c: In function 'usb_phy_parse_dt':
>> drivers/usb/phy/mv_usb2_phy.c:350:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   cc1: some warnings being treated as errors

vim +1124 drivers/usb/gadget/mv_udc_core.c

  1118	
  1119		if (udc->active)
  1120			return 0;
  1121	
  1122		dev_dbg(&udc->dev->dev, "enable udc\n");
  1123		udc_clock_enable(udc);
> 1124		if (udc->pdata->phy_init) {
  1125			retval = udc->pdata->phy_init(udc->phy_regs);
  1126			if (retval) {
  1127				dev_err(&udc->dev->dev,
  1128					"init phy error %d\n", retval);
  1129				udc_clock_disable(udc);
  1130				return retval;
  1131			}
  1132		}
  1133		udc->active = 1;
  1134	
  1135		return 0;
  1136	}
  1137	
  1138	static int mv_udc_enable(struct mv_udc *udc)
  1139	{
  1140		if (udc->clock_gating)
  1141			return mv_udc_enable_internal(udc);
  1142	
  1143		return 0;
  1144	}
  1145	
  1146	static void mv_udc_disable_internal(struct mv_udc *udc)
  1147	{
  1148		if (udc->active) {
  1149			dev_dbg(&udc->dev->dev, "disable udc\n");
  1150			if (udc->pdata->phy_deinit)
  1151				udc->pdata->phy_deinit(udc->phy_regs);
  1152			udc_clock_disable(udc);
  1153			udc->active = 0;

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux