diff options
| -rw-r--r-- | MAINTAINERS | 4 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/board-ap4evb.c | 6 | ||||
| -rw-r--r-- | arch/arm/mach-shmobile/intc-sh7372.c | 2 | ||||
| -rw-r--r-- | drivers/rtc/rtc-sh.c | 4 | ||||
| -rw-r--r-- | drivers/sh/clk/core.c | 4 | ||||
| -rw-r--r-- | drivers/sh/intc/virq.c | 2 | ||||
| -rw-r--r-- | include/linux/sh_intc.h | 2 |
7 files changed, 15 insertions, 9 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 88b74a75d932..b647890c5142 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
| @@ -945,7 +945,7 @@ M: Magnus Damm <magnus.damm@gmail.com> | |||
| 945 | L: linux-sh@vger.kernel.org | 945 | L: linux-sh@vger.kernel.org |
| 946 | W: http://oss.renesas.com | 946 | W: http://oss.renesas.com |
| 947 | Q: http://patchwork.kernel.org/project/linux-sh/list/ | 947 | Q: http://patchwork.kernel.org/project/linux-sh/list/ |
| 948 | T: git git://git.kernel.org/pub/scm/linux/kernel/git/lethal/genesis-2.6.git | 948 | T: git git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6.git rmobile-latest |
| 949 | S: Supported | 949 | S: Supported |
| 950 | F: arch/arm/mach-shmobile/ | 950 | F: arch/arm/mach-shmobile/ |
| 951 | F: drivers/sh/ | 951 | F: drivers/sh/ |
| @@ -5705,7 +5705,7 @@ M: Paul Mundt <lethal@linux-sh.org> | |||
| 5705 | L: linux-sh@vger.kernel.org | 5705 | L: linux-sh@vger.kernel.org |
| 5706 | W: http://www.linux-sh.org | 5706 | W: http://www.linux-sh.org |
| 5707 | Q: http://patchwork.kernel.org/project/linux-sh/list/ | 5707 | Q: http://patchwork.kernel.org/project/linux-sh/list/ |
| 5708 | T: git git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6.git | 5708 | T: git git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6.git sh-latest |
| 5709 | S: Supported | 5709 | S: Supported |
| 5710 | F: Documentation/sh/ | 5710 | F: Documentation/sh/ |
| 5711 | F: arch/sh/ | 5711 | F: arch/sh/ |
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index 32d9e2816e56..d3260542b943 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c | |||
| @@ -163,11 +163,13 @@ static struct mtd_partition nor_flash_partitions[] = { | |||
| 163 | .name = "loader", | 163 | .name = "loader", |
| 164 | .offset = 0x00000000, | 164 | .offset = 0x00000000, |
| 165 | .size = 512 * 1024, | 165 | .size = 512 * 1024, |
| 166 | .mask_flags = MTD_WRITEABLE, | ||
| 166 | }, | 167 | }, |
| 167 | { | 168 | { |
| 168 | .name = "bootenv", | 169 | .name = "bootenv", |
| 169 | .offset = MTDPART_OFS_APPEND, | 170 | .offset = MTDPART_OFS_APPEND, |
| 170 | .size = 512 * 1024, | 171 | .size = 512 * 1024, |
| 172 | .mask_flags = MTD_WRITEABLE, | ||
| 171 | }, | 173 | }, |
| 172 | { | 174 | { |
| 173 | .name = "kernel_ro", | 175 | .name = "kernel_ro", |
| @@ -581,6 +583,10 @@ static int fsi_set_rate(int is_porta, int rate) | |||
| 581 | return -EINVAL; | 583 | return -EINVAL; |
| 582 | 584 | ||
| 583 | switch (rate) { | 585 | switch (rate) { |
| 586 | case 44100: | ||
| 587 | clk_set_rate(fsib_clk, clk_round_rate(fsib_clk, 11283000)); | ||
| 588 | ret = SH_FSI_ACKMD_256 | SH_FSI_BPFMD_64; | ||
| 589 | break; | ||
| 584 | case 48000: | 590 | case 48000: |
| 585 | clk_set_rate(fsib_clk, clk_round_rate(fsib_clk, 85428000)); | 591 | clk_set_rate(fsib_clk, clk_round_rate(fsib_clk, 85428000)); |
| 586 | clk_set_rate(fdiv_clk, clk_round_rate(fdiv_clk, 12204000)); | 592 | clk_set_rate(fdiv_clk, clk_round_rate(fdiv_clk, 12204000)); |
diff --git a/arch/arm/mach-shmobile/intc-sh7372.c b/arch/arm/mach-shmobile/intc-sh7372.c index 4cd3cae38e72..30b2f400666a 100644 --- a/arch/arm/mach-shmobile/intc-sh7372.c +++ b/arch/arm/mach-shmobile/intc-sh7372.c | |||
| @@ -98,7 +98,7 @@ static struct intc_vect intca_vectors[] __initdata = { | |||
| 98 | INTC_VECT(IRQ14A, 0x03c0), INTC_VECT(IRQ15A, 0x03e0), | 98 | INTC_VECT(IRQ14A, 0x03c0), INTC_VECT(IRQ15A, 0x03e0), |
| 99 | INTC_VECT(IRQ16A, 0x3200), INTC_VECT(IRQ17A, 0x3220), | 99 | INTC_VECT(IRQ16A, 0x3200), INTC_VECT(IRQ17A, 0x3220), |
| 100 | INTC_VECT(IRQ18A, 0x3240), INTC_VECT(IRQ19A, 0x3260), | 100 | INTC_VECT(IRQ18A, 0x3240), INTC_VECT(IRQ19A, 0x3260), |
| 101 | INTC_VECT(IRQ20A, 0x3280), INTC_VECT(IRQ31A, 0x32a0), | 101 | INTC_VECT(IRQ20A, 0x3280), INTC_VECT(IRQ21A, 0x32a0), |
| 102 | INTC_VECT(IRQ22A, 0x32c0), INTC_VECT(IRQ23A, 0x32e0), | 102 | INTC_VECT(IRQ22A, 0x32c0), INTC_VECT(IRQ23A, 0x32e0), |
| 103 | INTC_VECT(IRQ24A, 0x3300), INTC_VECT(IRQ25A, 0x3320), | 103 | INTC_VECT(IRQ24A, 0x3300), INTC_VECT(IRQ25A, 0x3320), |
| 104 | INTC_VECT(IRQ26A, 0x3340), INTC_VECT(IRQ27A, 0x3360), | 104 | INTC_VECT(IRQ26A, 0x3340), INTC_VECT(IRQ27A, 0x3360), |
diff --git a/drivers/rtc/rtc-sh.c b/drivers/rtc/rtc-sh.c index 5efbd5990ff8..06e41ed93230 100644 --- a/drivers/rtc/rtc-sh.c +++ b/drivers/rtc/rtc-sh.c | |||
| @@ -761,7 +761,7 @@ err_unmap: | |||
| 761 | clk_put(rtc->clk); | 761 | clk_put(rtc->clk); |
| 762 | iounmap(rtc->regbase); | 762 | iounmap(rtc->regbase); |
| 763 | err_badmap: | 763 | err_badmap: |
| 764 | release_resource(rtc->res); | 764 | release_mem_region(rtc->res->start, rtc->regsize); |
| 765 | err_badres: | 765 | err_badres: |
| 766 | kfree(rtc); | 766 | kfree(rtc); |
| 767 | 767 | ||
| @@ -786,7 +786,7 @@ static int __exit sh_rtc_remove(struct platform_device *pdev) | |||
| 786 | } | 786 | } |
| 787 | 787 | ||
| 788 | iounmap(rtc->regbase); | 788 | iounmap(rtc->regbase); |
| 789 | release_resource(rtc->res); | 789 | release_mem_region(rtc->res->start, rtc->regsize); |
| 790 | 790 | ||
| 791 | clk_disable(rtc->clk); | 791 | clk_disable(rtc->clk); |
| 792 | clk_put(rtc->clk); | 792 | clk_put(rtc->clk); |
diff --git a/drivers/sh/clk/core.c b/drivers/sh/clk/core.c index 09615b51d591..cb12a8e1466b 100644 --- a/drivers/sh/clk/core.c +++ b/drivers/sh/clk/core.c | |||
| @@ -571,7 +571,7 @@ long clk_round_parent(struct clk *clk, unsigned long target, | |||
| 571 | *best_freq = freq_max; | 571 | *best_freq = freq_max; |
| 572 | } | 572 | } |
| 573 | 573 | ||
| 574 | pr_debug("too low freq %lu, error %lu\n", freq->frequency, | 574 | pr_debug("too low freq %u, error %lu\n", freq->frequency, |
| 575 | target - freq_max); | 575 | target - freq_max); |
| 576 | 576 | ||
| 577 | if (!error) | 577 | if (!error) |
| @@ -591,7 +591,7 @@ long clk_round_parent(struct clk *clk, unsigned long target, | |||
| 591 | *best_freq = freq_min; | 591 | *best_freq = freq_min; |
| 592 | } | 592 | } |
| 593 | 593 | ||
| 594 | pr_debug("too high freq %lu, error %lu\n", freq->frequency, | 594 | pr_debug("too high freq %u, error %lu\n", freq->frequency, |
| 595 | freq_min - target); | 595 | freq_min - target); |
| 596 | 596 | ||
| 597 | if (!error) | 597 | if (!error) |
diff --git a/drivers/sh/intc/virq.c b/drivers/sh/intc/virq.c index e5bf5d3c698e..4e0ff7181164 100644 --- a/drivers/sh/intc/virq.c +++ b/drivers/sh/intc/virq.c | |||
| @@ -215,7 +215,7 @@ restart: | |||
| 215 | entry = radix_tree_deref_slot((void **)entries[i]); | 215 | entry = radix_tree_deref_slot((void **)entries[i]); |
| 216 | if (unlikely(!entry)) | 216 | if (unlikely(!entry)) |
| 217 | continue; | 217 | continue; |
| 218 | if (unlikely(entry == RADIX_TREE_RETRY)) | 218 | if (radix_tree_deref_retry(entry)) |
| 219 | goto restart; | 219 | goto restart; |
| 220 | 220 | ||
| 221 | irq = create_irq(); | 221 | irq = create_irq(); |
diff --git a/include/linux/sh_intc.h b/include/linux/sh_intc.h index f656d1a43dc0..5812fefbcedf 100644 --- a/include/linux/sh_intc.h +++ b/include/linux/sh_intc.h | |||
| @@ -79,7 +79,7 @@ struct intc_hw_desc { | |||
| 79 | unsigned int nr_subgroups; | 79 | unsigned int nr_subgroups; |
| 80 | }; | 80 | }; |
| 81 | 81 | ||
| 82 | #define _INTC_ARRAY(a) a, a == NULL ? 0 : sizeof(a)/sizeof(*a) | 82 | #define _INTC_ARRAY(a) a, __same_type(a, NULL) ? 0 : sizeof(a)/sizeof(*a) |
| 83 | 83 | ||
| 84 | #define INTC_HW_DESC(vectors, groups, mask_regs, \ | 84 | #define INTC_HW_DESC(vectors, groups, mask_regs, \ |
| 85 | prio_regs, sense_regs, ack_regs) \ | 85 | prio_regs, sense_regs, ack_regs) \ |
