summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2013-02-07 07:16:26 +0000
committerTom Warren <twarren@nvidia.com>2013-03-14 11:06:40 -0700
commita4bdcc38c94f5d693b3ad65a70fd1aeac9436d64 (patch)
treeb87b30a5753d30f3ddf1fb2474e561647b4640a7 /arch/arm
parentb0bbab8a149ad4c3f764fa7ecff79788769cab99 (diff)
downloadu-boot-imx-a4bdcc38c94f5d693b3ad65a70fd1aeac9436d64.zip
u-boot-imx-a4bdcc38c94f5d693b3ad65a70fd1aeac9436d64.tar.gz
u-boot-imx-a4bdcc38c94f5d693b3ad65a70fd1aeac9436d64.tar.bz2
tegra: usb: remove unneeded function parameter
Just a dead parameter, never actually used. Signed-off-by: Lucas Stach <dev@lynxeye.de> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/cpu/armv7/tegra20/usb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/cpu/armv7/tegra20/usb.c b/arch/arm/cpu/armv7/tegra20/usb.c
index 07c1ade..2007483 100644
--- a/arch/arm/cpu/armv7/tegra20/usb.c
+++ b/arch/arm/cpu/armv7/tegra20/usb.c
@@ -486,8 +486,7 @@ int tegrausb_stop_port(int portnum)
return 0;
}
-int fdt_decode_usb(const void *blob, int node, unsigned osc_frequency_mhz,
- struct fdt_usb *config)
+int fdt_decode_usb(const void *blob, int node, struct fdt_usb *config)
{
const char *phy, *mode;
@@ -535,7 +534,6 @@ int fdt_decode_usb(const void *blob, int node, unsigned osc_frequency_mhz,
int board_usb_init(const void *blob)
{
struct fdt_usb config;
- unsigned osc_freq = clock_get_rate(CLOCK_ID_OSC);
enum clock_osc_freq freq;
int node_list[USB_PORTS_MAX];
int node, count, i;
@@ -552,7 +550,7 @@ int board_usb_init(const void *blob)
node = node_list[i];
if (!node)
continue;
- if (fdt_decode_usb(blob, node, osc_freq, &config)) {
+ if (fdt_decode_usb(blob, node, &config)) {
debug("Cannot decode USB node %s\n",
fdt_get_name(blob, node, NULL));
return -1;