Browse Source

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

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

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Jingoo Han 11 years ago
parent
commit
fb53e9467e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/usb/host/ehci-orion.c

+ 1 - 1
drivers/usb/host/ehci-orion.c

@@ -245,7 +245,7 @@ static int ehci_orion_drv_probe(struct platform_device *pdev)
 	case EHCI_PHY_DD:
 	case EHCI_PHY_DD:
 	case EHCI_PHY_KW:
 	case EHCI_PHY_KW:
 	default:
 	default:
-		printk(KERN_WARNING "Orion ehci -USB phy version isn't supported.\n");
+		dev_warn(&pdev->dev, "USB phy version isn't supported.\n");
 	}
 	}
 
 
 	err = usb_add_hcd(hcd, irq, IRQF_SHARED);
 	err = usb_add_hcd(hcd, irq, IRQF_SHARED);