diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-07 00:14:42 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-07 00:14:42 -0400 |
commit | 33caee39925b887a99a2400dc5c980097c3573f9 (patch) | |
tree | 8e68ad97e1fee88c4a3f31453041f8d139f2027e /arch/sh | |
parent | 6456a0438b984186a0c9c8ecc9fe3d97b7ac3613 (diff) | |
parent | f84223087402c45179be5e7060c5736c17a7b271 (diff) |
Merge branch 'akpm' (patchbomb from Andrew Morton)
Merge incoming from Andrew Morton:
- Various misc things.
- arch/sh updates.
- Part of ocfs2. Review is slow.
- Slab updates.
- Most of -mm.
- printk updates.
- lib/ updates.
- checkpatch updates.
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (226 commits)
checkpatch: update $declaration_macros, add uninitialized_var
checkpatch: warn on missing spaces in broken up quoted
checkpatch: fix false positives for --strict "space after cast" test
checkpatch: fix false positive MISSING_BREAK warnings with --file
checkpatch: add test for native c90 types in unusual order
checkpatch: add signed generic types
checkpatch: add short int to c variable types
checkpatch: add for_each tests to indentation and brace tests
checkpatch: fix brace style misuses of else and while
checkpatch: add --fix option for a couple OPEN_BRACE misuses
checkpatch: use the correct indentation for which()
checkpatch: add fix_insert_line and fix_delete_line helpers
checkpatch: add ability to insert and delete lines to patch/file
checkpatch: add an index variable for fixed lines
checkpatch: warn on break after goto or return with same tab indentation
checkpatch: emit a warning on file add/move/delete
checkpatch: add test for commit id formatting style in commit log
checkpatch: emit fewer kmalloc_array/kcalloc conversion warnings
checkpatch: improve "no space after cast" test
checkpatch: allow multiple const * types
...
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/drivers/dma/Kconfig | 5 | ||||
-rw-r--r-- | arch/sh/include/asm/io_noioport.h | 11 | ||||
-rw-r--r-- | arch/sh/include/cpu-sh4/cpu/dma-register.h | 1 | ||||
-rw-r--r-- | arch/sh/include/cpu-sh4a/cpu/dma.h | 3 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7724.c | 4 | ||||
-rw-r--r-- | arch/sh/kernel/time.c | 4 | ||||
-rw-r--r-- | arch/sh/mm/asids-debugfs.c | 4 | ||||
-rw-r--r-- | arch/sh/mm/init.c | 5 |
8 files changed, 22 insertions, 15 deletions
diff --git a/arch/sh/drivers/dma/Kconfig b/arch/sh/drivers/dma/Kconfig index cfd5b90a8628..78bc97b1d027 100644 --- a/arch/sh/drivers/dma/Kconfig +++ b/arch/sh/drivers/dma/Kconfig | |||
@@ -12,9 +12,8 @@ config SH_DMA_IRQ_MULTI | |||
12 | default y if CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7751 || \ | 12 | default y if CPU_SUBTYPE_SH7750 || CPU_SUBTYPE_SH7751 || \ |
13 | CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7750R || \ | 13 | CPU_SUBTYPE_SH7750S || CPU_SUBTYPE_SH7750R || \ |
14 | CPU_SUBTYPE_SH7751R || CPU_SUBTYPE_SH7091 || \ | 14 | CPU_SUBTYPE_SH7751R || CPU_SUBTYPE_SH7091 || \ |
15 | CPU_SUBTYPE_SH7763 || CPU_SUBTYPE_SH7764 || \ | 15 | CPU_SUBTYPE_SH7763 || CPU_SUBTYPE_SH7780 || \ |
16 | CPU_SUBTYPE_SH7780 || CPU_SUBTYPE_SH7785 || \ | 16 | CPU_SUBTYPE_SH7785 || CPU_SUBTYPE_SH7760 |
17 | CPU_SUBTYPE_SH7760 | ||
18 | 17 | ||
19 | config SH_DMA_API | 18 | config SH_DMA_API |
20 | depends on SH_DMA | 19 | depends on SH_DMA |
diff --git a/arch/sh/include/asm/io_noioport.h b/arch/sh/include/asm/io_noioport.h index 4d48f1436a63..c727e6ddf69e 100644 --- a/arch/sh/include/asm/io_noioport.h +++ b/arch/sh/include/asm/io_noioport.h | |||
@@ -34,6 +34,17 @@ static inline void outl(unsigned int x, unsigned long port) | |||
34 | BUG(); | 34 | BUG(); |
35 | } | 35 | } |
36 | 36 | ||
37 | static inline void __iomem *ioport_map(unsigned long port, unsigned int size) | ||
38 | { | ||
39 | BUG(); | ||
40 | return NULL; | ||
41 | } | ||
42 | |||
43 | static inline void ioport_unmap(void __iomem *addr) | ||
44 | { | ||
45 | BUG(); | ||
46 | } | ||
47 | |||
37 | #define inb_p(addr) inb(addr) | 48 | #define inb_p(addr) inb(addr) |
38 | #define inw_p(addr) inw(addr) | 49 | #define inw_p(addr) inw(addr) |
39 | #define inl_p(addr) inl(addr) | 50 | #define inl_p(addr) inl(addr) |
diff --git a/arch/sh/include/cpu-sh4/cpu/dma-register.h b/arch/sh/include/cpu-sh4/cpu/dma-register.h index 02788b6a03b7..9cd81e54056a 100644 --- a/arch/sh/include/cpu-sh4/cpu/dma-register.h +++ b/arch/sh/include/cpu-sh4/cpu/dma-register.h | |||
@@ -32,7 +32,6 @@ | |||
32 | #define CHCR_TS_HIGH_SHIFT (20 - 2) /* 2 bits for shifted low TS */ | 32 | #define CHCR_TS_HIGH_SHIFT (20 - 2) /* 2 bits for shifted low TS */ |
33 | #elif defined(CONFIG_CPU_SUBTYPE_SH7757) || \ | 33 | #elif defined(CONFIG_CPU_SUBTYPE_SH7757) || \ |
34 | defined(CONFIG_CPU_SUBTYPE_SH7763) || \ | 34 | defined(CONFIG_CPU_SUBTYPE_SH7763) || \ |
35 | defined(CONFIG_CPU_SUBTYPE_SH7764) || \ | ||
36 | defined(CONFIG_CPU_SUBTYPE_SH7780) || \ | 35 | defined(CONFIG_CPU_SUBTYPE_SH7780) || \ |
37 | defined(CONFIG_CPU_SUBTYPE_SH7785) | 36 | defined(CONFIG_CPU_SUBTYPE_SH7785) |
38 | #define CHCR_TS_LOW_MASK 0x00000018 | 37 | #define CHCR_TS_LOW_MASK 0x00000018 |
diff --git a/arch/sh/include/cpu-sh4a/cpu/dma.h b/arch/sh/include/cpu-sh4a/cpu/dma.h index 89afb650ce25..8ceccceae844 100644 --- a/arch/sh/include/cpu-sh4a/cpu/dma.h +++ b/arch/sh/include/cpu-sh4a/cpu/dma.h | |||
@@ -14,8 +14,7 @@ | |||
14 | #define DMTE4_IRQ evt2irq(0xb80) | 14 | #define DMTE4_IRQ evt2irq(0xb80) |
15 | #define DMAE0_IRQ evt2irq(0xbc0) /* DMA Error IRQ*/ | 15 | #define DMAE0_IRQ evt2irq(0xbc0) /* DMA Error IRQ*/ |
16 | #define SH_DMAC_BASE0 0xFE008020 | 16 | #define SH_DMAC_BASE0 0xFE008020 |
17 | #elif defined(CONFIG_CPU_SUBTYPE_SH7763) || \ | 17 | #elif defined(CONFIG_CPU_SUBTYPE_SH7763) |
18 | defined(CONFIG_CPU_SUBTYPE_SH7764) | ||
19 | #define DMTE0_IRQ evt2irq(0x640) | 18 | #define DMTE0_IRQ evt2irq(0x640) |
20 | #define DMTE4_IRQ evt2irq(0x780) | 19 | #define DMTE4_IRQ evt2irq(0x780) |
21 | #define DMAE0_IRQ evt2irq(0x6c0) | 20 | #define DMAE0_IRQ evt2irq(0x6c0) |
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7724.c b/arch/sh/kernel/cpu/sh4a/clock-sh7724.c index f579dd528198..c187b9579c21 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7724.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7724.c | |||
@@ -307,7 +307,7 @@ static struct clk_lookup lookups[] = { | |||
307 | CLKDEV_ICK_ID("fck", "sh-tmu.0", &mstp_clks[HWBLK_TMU0]), | 307 | CLKDEV_ICK_ID("fck", "sh-tmu.0", &mstp_clks[HWBLK_TMU0]), |
308 | CLKDEV_ICK_ID("fck", "sh-tmu.1", &mstp_clks[HWBLK_TMU1]), | 308 | CLKDEV_ICK_ID("fck", "sh-tmu.1", &mstp_clks[HWBLK_TMU1]), |
309 | 309 | ||
310 | CLKDEV_ICK_ID("fck", "sh-cmt-16.0", &mstp_clks[HWBLK_CMT]), | 310 | CLKDEV_ICK_ID("fck", "sh-cmt-32.0", &mstp_clks[HWBLK_CMT]), |
311 | CLKDEV_DEV_ID("sh-wdt.0", &mstp_clks[HWBLK_RWDT]), | 311 | CLKDEV_DEV_ID("sh-wdt.0", &mstp_clks[HWBLK_RWDT]), |
312 | CLKDEV_DEV_ID("sh-dma-engine.1", &mstp_clks[HWBLK_DMAC1]), | 312 | CLKDEV_DEV_ID("sh-dma-engine.1", &mstp_clks[HWBLK_DMAC1]), |
313 | 313 | ||
@@ -332,6 +332,8 @@ static struct clk_lookup lookups[] = { | |||
332 | CLKDEV_CON_ID("tsif0", &mstp_clks[HWBLK_TSIF]), | 332 | CLKDEV_CON_ID("tsif0", &mstp_clks[HWBLK_TSIF]), |
333 | CLKDEV_DEV_ID("renesas_usbhs.1", &mstp_clks[HWBLK_USB1]), | 333 | CLKDEV_DEV_ID("renesas_usbhs.1", &mstp_clks[HWBLK_USB1]), |
334 | CLKDEV_DEV_ID("renesas_usbhs.0", &mstp_clks[HWBLK_USB0]), | 334 | CLKDEV_DEV_ID("renesas_usbhs.0", &mstp_clks[HWBLK_USB0]), |
335 | CLKDEV_CON_ID("usb1", &mstp_clks[HWBLK_USB1]), | ||
336 | CLKDEV_CON_ID("usb0", &mstp_clks[HWBLK_USB0]), | ||
335 | CLKDEV_CON_ID("2dg0", &mstp_clks[HWBLK_2DG]), | 337 | CLKDEV_CON_ID("2dg0", &mstp_clks[HWBLK_2DG]), |
336 | CLKDEV_DEV_ID("sh_mobile_sdhi.0", &mstp_clks[HWBLK_SDHI0]), | 338 | CLKDEV_DEV_ID("sh_mobile_sdhi.0", &mstp_clks[HWBLK_SDHI0]), |
337 | CLKDEV_DEV_ID("sh_mobile_sdhi.1", &mstp_clks[HWBLK_SDHI1]), | 339 | CLKDEV_DEV_ID("sh_mobile_sdhi.1", &mstp_clks[HWBLK_SDHI1]), |
diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c index 552c8fcf9416..d6d0a986c6e9 100644 --- a/arch/sh/kernel/time.c +++ b/arch/sh/kernel/time.c | |||
@@ -80,10 +80,8 @@ static int __init rtc_generic_init(void) | |||
80 | return -ENODEV; | 80 | return -ENODEV; |
81 | 81 | ||
82 | pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0); | 82 | pdev = platform_device_register_simple("rtc-generic", -1, NULL, 0); |
83 | if (IS_ERR(pdev)) | ||
84 | return PTR_ERR(pdev); | ||
85 | 83 | ||
86 | return 0; | 84 | return PTR_ERR_OR_ZERO(pdev); |
87 | } | 85 | } |
88 | module_init(rtc_generic_init); | 86 | module_init(rtc_generic_init); |
89 | 87 | ||
diff --git a/arch/sh/mm/asids-debugfs.c b/arch/sh/mm/asids-debugfs.c index 74c03ecc4871..ecfc6b0c1da1 100644 --- a/arch/sh/mm/asids-debugfs.c +++ b/arch/sh/mm/asids-debugfs.c | |||
@@ -67,10 +67,8 @@ static int __init asids_debugfs_init(void) | |||
67 | NULL, &asids_debugfs_fops); | 67 | NULL, &asids_debugfs_fops); |
68 | if (!asids_dentry) | 68 | if (!asids_dentry) |
69 | return -ENOMEM; | 69 | return -ENOMEM; |
70 | if (IS_ERR(asids_dentry)) | ||
71 | return PTR_ERR(asids_dentry); | ||
72 | 70 | ||
73 | return 0; | 71 | return PTR_ERR_OR_ZERO(asids_dentry); |
74 | } | 72 | } |
75 | module_init(asids_debugfs_init); | 73 | module_init(asids_debugfs_init); |
76 | 74 | ||
diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index 2d089fe2cba9..2790b6a64157 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c | |||
@@ -495,8 +495,9 @@ int arch_add_memory(int nid, u64 start, u64 size) | |||
495 | pgdat = NODE_DATA(nid); | 495 | pgdat = NODE_DATA(nid); |
496 | 496 | ||
497 | /* We only have ZONE_NORMAL, so this is easy.. */ | 497 | /* We only have ZONE_NORMAL, so this is easy.. */ |
498 | ret = __add_pages(nid, pgdat->node_zones + ZONE_NORMAL, | 498 | ret = __add_pages(nid, pgdat->node_zones + |
499 | start_pfn, nr_pages); | 499 | zone_for_memory(nid, start, size, ZONE_NORMAL), |
500 | start_pfn, nr_pages); | ||
500 | if (unlikely(ret)) | 501 | if (unlikely(ret)) |
501 | printk("%s: Failed, __add_pages() == %d\n", __func__, ret); | 502 | printk("%s: Failed, __add_pages() == %d\n", __func__, ret); |
502 | 503 | ||