summaryrefslogtreecommitdiff
path: root/arch/arm/imx-common
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-07-09 17:59:54 -0300
committerStefano Babic <sbabic@denx.de>2014-07-23 12:25:41 +0200
commit0a11d6f29ce48c649e4358a24b5781d3171c5406 (patch)
tree0794f0e12674fed4a24da70cd4921f4b2fd9cbb3 /arch/arm/imx-common
parentfa8cf3176cc3360d308db1aad8bd70458553c78a (diff)
downloadu-boot-imx-0a11d6f29ce48c649e4358a24b5781d3171c5406.zip
u-boot-imx-0a11d6f29ce48c649e4358a24b5781d3171c5406.tar.gz
u-boot-imx-0a11d6f29ce48c649e4358a24b5781d3171c5406.tar.bz2
mx6: Remove duplication of iomuxc structure
There is no need to keep iomuxc_base_regs structure as it serves the exact same purpose of the iomuxc structure, which is to provide access to the GPR registers. The additional fields of iomuxc_base_regs are not used. Other advantage of 'iomuxc' is that it has a shorter name and the variable declarations can fit into a single line. So remove iomuxc_base_regs structure and use iomuxc instead. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm/imx-common')
-rw-r--r--arch/arm/imx-common/sata.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/imx-common/sata.c b/arch/arm/imx-common/sata.c
index c10dd28..d174a46 100644
--- a/arch/arm/imx-common/sata.c
+++ b/arch/arm/imx-common/sata.c
@@ -12,8 +12,7 @@
int setup_sata(void)
{
- struct iomuxc_base_regs *const iomuxc_regs
- = (struct iomuxc_base_regs *)IOMUXC_BASE_ADDR;
+ struct iomuxc *const iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR;
int ret;
if (!is_cpu_type(MXC_CPU_MX6Q) && !is_cpu_type(MXC_CPU_MX6D))