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>
This commit is contained in:
Mahesh Mahadevan 2024-12-06 13:10:45 -06:00 committed by Benjamin Cabé
parent 18c2ea2336
commit b978fd7bfb
2 changed files with 2 additions and 4 deletions

View file

@ -695,8 +695,7 @@ static int udc_mcux_init(const struct device *dev)
#ifdef CONFIG_DT_HAS_NXP_USBPHY_ENABLED
if (config->phy_config != NULL) {
USB_EhciPhyInit(priv->controller_id, 0u,
(usb_phy_config_struct_t *)&config->phy_config);
USB_EhciPhyInit(priv->controller_id, 0u, config->phy_config);
}
#endif

View file

@ -695,8 +695,7 @@ static int udc_mcux_init(const struct device *dev)
#ifdef CONFIG_DT_HAS_NXP_USBPHY_ENABLED
if (config->phy_config != NULL) {
USB_EhciPhyInit(priv->controller_id, 0u,
(usb_phy_config_struct_t *)&config->phy_config);
USB_EhciPhyInit(priv->controller_id, 0u, config->phy_config);
}
#endif