Skip to content

Commit b978fd7

Browse files
mmahadevan108kartben
authored andcommitted
drivers: usb: Fix pointer reference in the NXP drivers
The address passed in to the function was incorrect causing failures when porting to RT1180. Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
1 parent 18c2ea2 commit b978fd7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

drivers/usb/udc/udc_mcux_ehci.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,7 @@ static int udc_mcux_init(const struct device *dev)
695695

696696
#ifdef CONFIG_DT_HAS_NXP_USBPHY_ENABLED
697697
if (config->phy_config != NULL) {
698-
USB_EhciPhyInit(priv->controller_id, 0u,
699-
(usb_phy_config_struct_t *)&config->phy_config);
698+
USB_EhciPhyInit(priv->controller_id, 0u, config->phy_config);
700699
}
701700
#endif
702701

drivers/usb/udc/udc_mcux_ip3511.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,7 @@ static int udc_mcux_init(const struct device *dev)
695695

696696
#ifdef CONFIG_DT_HAS_NXP_USBPHY_ENABLED
697697
if (config->phy_config != NULL) {
698-
USB_EhciPhyInit(priv->controller_id, 0u,
699-
(usb_phy_config_struct_t *)&config->phy_config);
698+
USB_EhciPhyInit(priv->controller_id, 0u, config->phy_config);
700699
}
701700
#endif
702701

0 commit comments

Comments
 (0)