diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-12-24 01:16:41 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-12-24 01:16:41 -0500 |
commit | 17eb9d62828c3688f41f31ac00d7fee6da9675bf (patch) | |
tree | 03da91192242b6467d4f2d9d0b26f11f4da55c0c /arch/sh | |
parent | 76e7461a21dfe13565b2a323b53c8cc963541126 (diff) | |
parent | f34548cb735b7a80bbbb0bdd09ad4c2173ba92d5 (diff) |
Merge branches 'sh/g3-prep' and 'sh/stable-updates'
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/boards/mach-ecovec24/setup.c | 4 | ||||
-rw-r--r-- | arch/sh/mm/cache.c | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index 194aaca22d47..6a8861b39f05 100644 --- a/arch/sh/boards/mach-ecovec24/setup.c +++ b/arch/sh/boards/mach-ecovec24/setup.c | |||
@@ -128,8 +128,6 @@ static struct platform_device nor_flash_device = { | |||
128 | 128 | ||
129 | /* SH Eth */ | 129 | /* SH Eth */ |
130 | #define SH_ETH_ADDR (0xA4600000) | 130 | #define SH_ETH_ADDR (0xA4600000) |
131 | #define SH_ETH_MAHR (SH_ETH_ADDR + 0x1C0) | ||
132 | #define SH_ETH_MALR (SH_ETH_ADDR + 0x1C8) | ||
133 | static struct resource sh_eth_resources[] = { | 131 | static struct resource sh_eth_resources[] = { |
134 | [0] = { | 132 | [0] = { |
135 | .start = SH_ETH_ADDR, | 133 | .start = SH_ETH_ADDR, |
@@ -509,6 +507,7 @@ static struct platform_device sdhi1_device = { | |||
509 | 507 | ||
510 | #else | 508 | #else |
511 | 509 | ||
510 | /* MMC SPI */ | ||
512 | static int mmc_spi_get_ro(struct device *dev) | 511 | static int mmc_spi_get_ro(struct device *dev) |
513 | { | 512 | { |
514 | return gpio_get_value(GPIO_PTY6); | 513 | return gpio_get_value(GPIO_PTY6); |
@@ -542,6 +541,7 @@ static struct spi_board_info spi_bus[] = { | |||
542 | }, | 541 | }, |
543 | }; | 542 | }; |
544 | 543 | ||
544 | /* MSIOF0 */ | ||
545 | static struct sh_msiof_spi_info msiof0_data = { | 545 | static struct sh_msiof_spi_info msiof0_data = { |
546 | .num_chipselect = 1, | 546 | .num_chipselect = 1, |
547 | }; | 547 | }; |
diff --git a/arch/sh/mm/cache.c b/arch/sh/mm/cache.c index e9415d3ea94a..b8607fa7ae12 100644 --- a/arch/sh/mm/cache.c +++ b/arch/sh/mm/cache.c | |||
@@ -133,12 +133,8 @@ void __update_cache(struct vm_area_struct *vma, | |||
133 | page = pfn_to_page(pfn); | 133 | page = pfn_to_page(pfn); |
134 | if (pfn_valid(pfn)) { | 134 | if (pfn_valid(pfn)) { |
135 | int dirty = test_and_clear_bit(PG_dcache_dirty, &page->flags); | 135 | int dirty = test_and_clear_bit(PG_dcache_dirty, &page->flags); |
136 | if (dirty) { | 136 | if (dirty) |
137 | unsigned long addr = (unsigned long)page_address(page); | 137 | __flush_purge_region(page_address(page), PAGE_SIZE); |
138 | |||
139 | if (pages_do_alias(addr, address & PAGE_MASK)) | ||
140 | __flush_purge_region((void *)addr, PAGE_SIZE); | ||
141 | } | ||
142 | } | 138 | } |
143 | } | 139 | } |
144 | 140 | ||