Commit 0106de23 authored by Paul Mundt's avatar Paul Mundt Committed by Tony Lindgren

[PATCH] ARM: OMAP2: Cleanup various compile warnings.

The current tree is a bit noisy when it comes to OMAP2 builds, here's a
couple of trivial patches to shut up gcc.
parent 8bc8bf07
...@@ -913,7 +913,7 @@ static int omap2_clk_set_parent(struct clk *clk, struct clk *new_parent) ...@@ -913,7 +913,7 @@ static int omap2_clk_set_parent(struct clk *clk, struct clk *new_parent)
static int omap2_select_table_rate(struct clk * clk, unsigned long rate) static int omap2_select_table_rate(struct clk * clk, unsigned long rate)
{ {
u32 flags, cur_rate, done_rate, bypass = 0; u32 flags, cur_rate, done_rate, bypass = 0;
u8 cpu_mask; u8 cpu_mask = 0;
struct prcm_config *prcm; struct prcm_config *prcm;
unsigned long found_speed = 0; unsigned long found_speed = 0;
...@@ -929,7 +929,7 @@ static int omap2_select_table_rate(struct clk * clk, unsigned long rate) ...@@ -929,7 +929,7 @@ static int omap2_select_table_rate(struct clk * clk, unsigned long rate)
for (prcm = rate_table; prcm->mpu_speed; prcm++) { for (prcm = rate_table; prcm->mpu_speed; prcm++) {
if (!(prcm->flags & cpu_mask)) if (!(prcm->flags & cpu_mask))
continue; continue;
if (prcm->xtal_speed != sys_ck.rate) if (prcm->xtal_speed != sys_ck.rate)
continue; continue;
...@@ -941,7 +941,7 @@ static int omap2_select_table_rate(struct clk * clk, unsigned long rate) ...@@ -941,7 +941,7 @@ static int omap2_select_table_rate(struct clk * clk, unsigned long rate)
if (!found_speed) { if (!found_speed) {
printk(KERN_INFO "Could not set MPU rate to %luMHz\n", printk(KERN_INFO "Could not set MPU rate to %luMHz\n",
rate / 1000000); rate / 1000000);
return -EINVAL; return -EINVAL;
} }
......
...@@ -17,9 +17,6 @@ ...@@ -17,9 +17,6 @@
#ifndef __ARCH_ARM_MACH_OMAP2_CLOCK_H #ifndef __ARCH_ARM_MACH_OMAP2_CLOCK_H
#define __ARCH_ARM_MACH_OMAP2_CLOCK_H #define __ARCH_ARM_MACH_OMAP2_CLOCK_H
/* FIXME: This will go away when the cpu detection is done for 24xx */
#define cpu_is_omap2430() 0
static void omap2_sys_clk_recalc(struct clk * clk); static void omap2_sys_clk_recalc(struct clk * clk);
static void omap2_clksel_recalc(struct clk * clk); static void omap2_clksel_recalc(struct clk * clk);
static void omap2_followparent_recalc(struct clk * clk); static void omap2_followparent_recalc(struct clk * clk);
......
...@@ -91,6 +91,8 @@ EXPORT_SYMBOL(otg_set_transceiver); ...@@ -91,6 +91,8 @@ EXPORT_SYMBOL(otg_set_transceiver);
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
#if defined(CONFIG_ARCH_OMAP_OTG) || defined(CONFIG_ARCH_OMAP15XX)
static u32 __init omap_usb0_init(unsigned nwires, unsigned is_device) static u32 __init omap_usb0_init(unsigned nwires, unsigned is_device)
{ {
u32 syscon1 = 0; u32 syscon1 = 0;
...@@ -271,6 +273,8 @@ static u32 __init omap_usb2_init(unsigned nwires, unsigned alt_pingroup) ...@@ -271,6 +273,8 @@ static u32 __init omap_usb2_init(unsigned nwires, unsigned alt_pingroup)
return syscon1 << 24; return syscon1 << 24;
} }
#endif
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
#if defined(CONFIG_USB_GADGET_OMAP) || \ #if defined(CONFIG_USB_GADGET_OMAP) || \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment