Commit 0859fe9f authored by Thierry Reding's avatar Thierry Reding

memory: tegra: Rename tegra_mc to tegra186_mc on Tegra186

This is just for consistency with the rest of the driver.
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 8cee32b4
...@@ -15,7 +15,7 @@ struct tegra_mc { ...@@ -15,7 +15,7 @@ struct tegra_mc {
void __iomem *regs; void __iomem *regs;
}; };
struct tegra_mc_client { struct tegra186_mc_client {
const char *name; const char *name;
unsigned int sid; unsigned int sid;
struct { struct {
...@@ -24,7 +24,13 @@ struct tegra_mc_client { ...@@ -24,7 +24,13 @@ struct tegra_mc_client {
} regs; } regs;
}; };
static const struct tegra_mc_client tegra186_mc_clients[] = { struct tegra186_mc {
struct memory_controller base;
struct device *dev;
void __iomem *regs;
};
static const struct tegra186_mc_client tegra186_mc_clients[] = {
{ {
.name = "ptcr", .name = "ptcr",
.sid = TEGRA186_SID_PASSTHROUGH, .sid = TEGRA186_SID_PASSTHROUGH,
...@@ -534,8 +540,8 @@ static const struct tegra_mc_client tegra186_mc_clients[] = { ...@@ -534,8 +540,8 @@ static const struct tegra_mc_client tegra186_mc_clients[] = {
static int tegra186_mc_probe(struct platform_device *pdev) static int tegra186_mc_probe(struct platform_device *pdev)
{ {
struct tegra186_mc *mc;
struct resource *res; struct resource *res;
struct tegra_mc *mc;
unsigned int i; unsigned int i;
int err = 0; int err = 0;
...@@ -551,7 +557,7 @@ static int tegra186_mc_probe(struct platform_device *pdev) ...@@ -551,7 +557,7 @@ static int tegra186_mc_probe(struct platform_device *pdev)
mc->dev = &pdev->dev; mc->dev = &pdev->dev;
for (i = 0; i < ARRAY_SIZE(tegra186_mc_clients); i++) { for (i = 0; i < ARRAY_SIZE(tegra186_mc_clients); i++) {
const struct tegra_mc_client *client = &tegra186_mc_clients[i]; const struct tegra186_mc_client *client = &tegra186_mc_clients[i];
u32 override, security; u32 override, security;
override = readl(mc->regs + client->regs.override); override = readl(mc->regs + client->regs.override);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment