Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4fbb6d5 authored by Jingoo Han's avatar Jingoo Han Committed by Greg Kroah-Hartman
Browse files

USB: ehci-fsl: use dev_warn() instead of printk()



Use dev_warn() instead of printk() to provide a better message
to userspace.

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fc7a3252
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -268,7 +268,7 @@ static int ehci_fsl_setup_phy(struct usb_hcd *hcd,
		if (!(spin_event_timeout(in_be32(non_ehci + FSL_SOC_USB_CTRL) &
		if (!(spin_event_timeout(in_be32(non_ehci + FSL_SOC_USB_CTRL) &
				PHY_CLK_VALID, FSL_USB_PHY_CLK_TIMEOUT, 0) ||
				PHY_CLK_VALID, FSL_USB_PHY_CLK_TIMEOUT, 0) ||
				in_be32(non_ehci + FSL_SOC_USB_PRICTRL))) {
				in_be32(non_ehci + FSL_SOC_USB_PRICTRL))) {
			printk(KERN_WARNING "fsl-ehci: USB PHY clock invalid\n");
			dev_warn(hcd->self.controller, "USB PHY clock invalid\n");
			return -EINVAL;
			return -EINVAL;
		}
		}
	}
	}