memory: tegra{20,30}-mc: Fix reading incorrect register in mc_readl()
authorAxel Lin <axel.lin@gmail.com>
Thu, 20 Sep 2012 01:32:53 +0000 (09:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2012 21:04:09 +0000 (14:04 -0700)
commite0f21e6d52cc245e7d4f7e02ca4b7b6571660ec2
treefd4744e4d93c0530730c0ed07c3782483ee16c36
parent0a18b05043acc01d1d6a4bac459e62c79628881c
memory: tegra{20,30}-mc: Fix reading incorrect register in mc_readl()

The code reading the register does not match the code writing to the register,
fix it.

Also fix the coding style in mc_writel() for better readability.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/memory/tegra20-mc.c
drivers/memory/tegra30-mc.c