diff options
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/board-ldp.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clock.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c index 61f7c365a28c..73e3fdb2d20a 100644 --- a/arch/arm/mach-omap2/board-ldp.c +++ b/arch/arm/mach-omap2/board-ldp.c | |||
@@ -81,7 +81,7 @@ static inline void __init ldp_init_smc911x(void) | |||
81 | } | 81 | } |
82 | 82 | ||
83 | ldp_smc911x_resources[0].start = cs_mem_base + 0x0; | 83 | ldp_smc911x_resources[0].start = cs_mem_base + 0x0; |
84 | ldp_smc911x_resources[0].end = cs_mem_base + 0xf; | 84 | ldp_smc911x_resources[0].end = cs_mem_base + 0xff; |
85 | udelay(100); | 85 | udelay(100); |
86 | 86 | ||
87 | eth_gpio = LDP_SMC911X_GPIO; | 87 | eth_gpio = LDP_SMC911X_GPIO; |
diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index f49bce997a0b..4247a1534411 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c | |||
@@ -663,7 +663,7 @@ u32 omap2_clksel_to_divisor(struct clk *clk, u32 field_val) | |||
663 | * | 663 | * |
664 | * Given a struct clk of a rate-selectable clksel clock, and a clock divisor, | 664 | * Given a struct clk of a rate-selectable clksel clock, and a clock divisor, |
665 | * find the corresponding register field value. The return register value is | 665 | * find the corresponding register field value. The return register value is |
666 | * the value before left-shifting. Returns 0xffffffff on error | 666 | * the value before left-shifting. Returns ~0 on error |
667 | */ | 667 | */ |
668 | u32 omap2_divisor_to_clksel(struct clk *clk, u32 div) | 668 | u32 omap2_divisor_to_clksel(struct clk *clk, u32 div) |
669 | { | 669 | { |
@@ -675,7 +675,7 @@ u32 omap2_divisor_to_clksel(struct clk *clk, u32 div) | |||
675 | 675 | ||
676 | clks = omap2_get_clksel_by_parent(clk, clk->parent); | 676 | clks = omap2_get_clksel_by_parent(clk, clk->parent); |
677 | if (!clks) | 677 | if (!clks) |
678 | return 0; | 678 | return ~0; |
679 | 679 | ||
680 | for (clkr = clks->rates; clkr->div; clkr++) { | 680 | for (clkr = clks->rates; clkr->div; clkr++) { |
681 | if ((clkr->flags & cpu_mask) && (clkr->div == div)) | 681 | if ((clkr->flags & cpu_mask) && (clkr->div == div)) |
@@ -686,7 +686,7 @@ u32 omap2_divisor_to_clksel(struct clk *clk, u32 div) | |||
686 | printk(KERN_ERR "clock: Could not find divisor %d for " | 686 | printk(KERN_ERR "clock: Could not find divisor %d for " |
687 | "clock %s parent %s\n", div, clk->name, | 687 | "clock %s parent %s\n", div, clk->name, |
688 | clk->parent->name); | 688 | clk->parent->name); |
689 | return 0; | 689 | return ~0; |
690 | } | 690 | } |
691 | 691 | ||
692 | return clkr->val; | 692 | return clkr->val; |
@@ -774,7 +774,7 @@ static u32 _omap2_clksel_get_src_field(struct clk *src_clk, struct clk *clk, | |||
774 | return 0; | 774 | return 0; |
775 | 775 | ||
776 | for (clkr = clks->rates; clkr->div; clkr++) { | 776 | for (clkr = clks->rates; clkr->div; clkr++) { |
777 | if (clkr->flags & (cpu_mask | DEFAULT_RATE)) | 777 | if (clkr->flags & cpu_mask && clkr->flags & DEFAULT_RATE) |
778 | break; /* Found the default rate for this platform */ | 778 | break; /* Found the default rate for this platform */ |
779 | } | 779 | } |
780 | 780 | ||