diff options
author | Olof Johansson <olof@lixom.net> | 2012-09-16 21:15:35 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-09-16 21:15:35 -0400 |
commit | 0968d01827dfcd443d293c382b47d75fbf60832f (patch) | |
tree | 14584ac638b526d37bf60446e38200b1c3e27e40 | |
parent | c098c9f2aae73d62a0bce1a161cfeb04273e6b35 (diff) | |
parent | a5b64ce64d6bdceecd45a07893affbf88d7bb7d2 (diff) |
Merge tag 'tegra-for-3.7-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra into next/cleanup
From Stephen Warren:
This branch contains a few early cleanups; consistent use of IO_ADDRESS,
always selecting USE_OF since we're converting to device-tree-only this
merge window, and removing includes of some header files as part of
working towards single zImage.
* tag 'tegra-for-3.7-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra:
mmc: tegra: remove useless include of <mach/*.h>
gpio: tegra: remove useless includes of <mach/*.h>
ARM: tegra: remove duplicate select USE_OF
ARM: tegra: use IO_ADDRESS for getting virtual address
-rw-r--r-- | arch/arm/mach-tegra/Kconfig | 1 | ||||
-rw-r--r-- | arch/arm/mach-tegra/apbio.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-tegra/fuse.c | 4 | ||||
-rw-r--r-- | drivers/gpio/gpio-tegra.c | 3 | ||||
-rw-r--r-- | drivers/mmc/host/sdhci-tegra.c | 1 |
5 files changed, 4 insertions, 9 deletions
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig index 9077aaa398d9..cce4bb07b575 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig | |||
@@ -34,7 +34,6 @@ config ARCH_TEGRA_3x_SOC | |||
34 | select USB_ARCH_HAS_EHCI if USB_SUPPORT | 34 | select USB_ARCH_HAS_EHCI if USB_SUPPORT |
35 | select USB_ULPI if USB | 35 | select USB_ULPI if USB |
36 | select USB_ULPI_VIEWPORT if USB_SUPPORT | 36 | select USB_ULPI_VIEWPORT if USB_SUPPORT |
37 | select USE_OF | ||
38 | select ARM_ERRATA_743622 | 37 | select ARM_ERRATA_743622 |
39 | select ARM_ERRATA_751472 | 38 | select ARM_ERRATA_751472 |
40 | select ARM_ERRATA_754322 | 39 | select ARM_ERRATA_754322 |
diff --git a/arch/arm/mach-tegra/apbio.c b/arch/arm/mach-tegra/apbio.c index dc0fe389be56..643a37809a15 100644 --- a/arch/arm/mach-tegra/apbio.c +++ b/arch/arm/mach-tegra/apbio.c | |||
@@ -293,12 +293,12 @@ static apbio_write_fptr apbio_write; | |||
293 | 293 | ||
294 | static u32 tegra_apb_readl_direct(unsigned long offset) | 294 | static u32 tegra_apb_readl_direct(unsigned long offset) |
295 | { | 295 | { |
296 | return readl(IO_TO_VIRT(offset)); | 296 | return readl(IO_ADDRESS(offset)); |
297 | } | 297 | } |
298 | 298 | ||
299 | static void tegra_apb_writel_direct(u32 value, unsigned long offset) | 299 | static void tegra_apb_writel_direct(u32 value, unsigned long offset) |
300 | { | 300 | { |
301 | writel(value, IO_TO_VIRT(offset)); | 301 | writel(value, IO_ADDRESS(offset)); |
302 | } | 302 | } |
303 | 303 | ||
304 | void tegra_apb_io_init(void) | 304 | void tegra_apb_io_init(void) |
diff --git a/arch/arm/mach-tegra/fuse.c b/arch/arm/mach-tegra/fuse.c index f946d129423c..0b7db174a5de 100644 --- a/arch/arm/mach-tegra/fuse.c +++ b/arch/arm/mach-tegra/fuse.c | |||
@@ -93,9 +93,9 @@ void tegra_init_fuse(void) | |||
93 | { | 93 | { |
94 | u32 id; | 94 | u32 id; |
95 | 95 | ||
96 | u32 reg = readl(IO_TO_VIRT(TEGRA_CLK_RESET_BASE + 0x48)); | 96 | u32 reg = readl(IO_ADDRESS(TEGRA_CLK_RESET_BASE + 0x48)); |
97 | reg |= 1 << 28; | 97 | reg |= 1 << 28; |
98 | writel(reg, IO_TO_VIRT(TEGRA_CLK_RESET_BASE + 0x48)); | 98 | writel(reg, IO_ADDRESS(TEGRA_CLK_RESET_BASE + 0x48)); |
99 | 99 | ||
100 | reg = tegra_fuse_readl(FUSE_SKU_INFO); | 100 | reg = tegra_fuse_readl(FUSE_SKU_INFO); |
101 | tegra_sku_id = reg & 0xFF; | 101 | tegra_sku_id = reg & 0xFF; |
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c index dc5184d57892..d982593d7563 100644 --- a/drivers/gpio/gpio-tegra.c +++ b/drivers/gpio/gpio-tegra.c | |||
@@ -30,9 +30,6 @@ | |||
30 | 30 | ||
31 | #include <asm/mach/irq.h> | 31 | #include <asm/mach/irq.h> |
32 | 32 | ||
33 | #include <mach/iomap.h> | ||
34 | #include <mach/suspend.h> | ||
35 | |||
36 | #define GPIO_BANK(x) ((x) >> 5) | 33 | #define GPIO_BANK(x) ((x) >> 5) |
37 | #define GPIO_PORT(x) (((x) >> 3) & 0x3) | 34 | #define GPIO_PORT(x) (((x) >> 3) & 0x3) |
38 | #define GPIO_BIT(x) ((x) & 0x7) | 35 | #define GPIO_BIT(x) ((x) & 0x7) |
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 0810ccc23d7e..5393c64de3c8 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c | |||
@@ -27,7 +27,6 @@ | |||
27 | 27 | ||
28 | #include <asm/gpio.h> | 28 | #include <asm/gpio.h> |
29 | 29 | ||
30 | #include <mach/gpio-tegra.h> | ||
31 | #include <mach/sdhci.h> | 30 | #include <mach/sdhci.h> |
32 | 31 | ||
33 | #include "sdhci-pltfm.h" | 32 | #include "sdhci-pltfm.h" |