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:
parent
18c2ea2336
commit
b978fd7bfb
2 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue