浏览代码

USB: ohci-omap: handle other omap15xx chips

Sync up USB parts of the ohci-omap support in mainline with the OMAP tree.
This patch supports another first generation OMAP1 part: not just the
OMAP 1510 (and its catalog version, the OMAP 5910), but also OMAP 310.

From: Tony Lindgren <tony@atomide.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Tony Lindgren 17 年之前
父节点
当前提交
9b466c3b82
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/usb/host/ohci-omap.c

+ 2 - 2
drivers/usb/host/ohci-omap.c

@@ -231,7 +231,7 @@ static int ohci_omap_init(struct usb_hcd *hcd)
 
 
 	omap_ohci_clock_power(1);
 	omap_ohci_clock_power(1);
 
 
-	if (cpu_is_omap1510()) {
+	if (cpu_is_omap15xx()) {
 		omap_1510_local_bus_power(1);
 		omap_1510_local_bus_power(1);
 		omap_1510_local_bus_init();
 		omap_1510_local_bus_init();
 	}
 	}
@@ -319,7 +319,7 @@ static int usb_hcd_omap_probe (const struct hc_driver *driver,
 	if (IS_ERR(usb_host_ck))
 	if (IS_ERR(usb_host_ck))
 		return PTR_ERR(usb_host_ck);
 		return PTR_ERR(usb_host_ck);
 
 
-	if (!cpu_is_omap1510())
+	if (!cpu_is_omap15xx())
 		usb_dc_ck = clk_get(0, "usb_dc_ck");
 		usb_dc_ck = clk_get(0, "usb_dc_ck");
 	else
 	else
 		usb_dc_ck = clk_get(0, "lb_ck");
 		usb_dc_ck = clk_get(0, "lb_ck");