Re: [PATCH v5] usb: of: add an api to get dr_mode by the phy node

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

 



Hi,

John Youn <John.Youn@xxxxxxxxxxxx> writes:
>> +enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *phy_np)
>> +{
>> +	return USB_DR_MODE_UNKNOWN;
>> +}
>>  static inline bool of_usb_host_tpl_support(struct device_node *np)
>>  {
>>  	return false;
>> 
>
>
> Hi Felipe,
>
> This commit in your testing/next causes compilation error:
>
> /home/johnyoun/linux/linux-usb/drivers/usb/common/common.c:143:18: error: redefinition of ‘of_usb_get_dr_mode_by_phy’
>  enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *phy_np)
>                   ^
> In file included from /home/johnyoun/linux/linux-usb/drivers/usb/common/common.c:18:0:
> /home/johnyoun/linux/linux-usb/include/linux/usb/of.h:20:18: note: previous definition of ‘of_usb_get_dr_mode_by_phy’ was here
>  enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *phy_np)
>                   ^
> make[4]: *** [drivers/usb/common/common.o] Error 1

I just recompiled here and it built fine. Got a defconfig I can use
here?

regards

-- 
balbi

Attachment: signature.asc
Description: PGP signature


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

  Powered by Linux