Commit ed21465a authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Samuel Ortiz

mfd: syscon: Removed unneeded field "dev" from private driver structure

Signed-off-by: default avatarAlexander Shiyan <shc_work@mail.ru>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 2154a2b3
...@@ -25,17 +25,15 @@ ...@@ -25,17 +25,15 @@
static struct platform_driver syscon_driver; static struct platform_driver syscon_driver;
struct syscon { struct syscon {
struct device *dev;
void __iomem *base; void __iomem *base;
struct regmap *regmap; struct regmap *regmap;
}; };
static int syscon_match(struct device *dev, void *data) static int syscon_match(struct device *dev, void *data)
{ {
struct syscon *syscon = dev_get_drvdata(dev);
struct device_node *dn = data; struct device_node *dn = data;
return (syscon->dev->of_node == dn) ? 1 : 0; return (dev->of_node == dn) ? 1 : 0;
} }
struct regmap *syscon_node_to_regmap(struct device_node *np) struct regmap *syscon_node_to_regmap(struct device_node *np)
...@@ -130,7 +128,6 @@ static int syscon_probe(struct platform_device *pdev) ...@@ -130,7 +128,6 @@ static int syscon_probe(struct platform_device *pdev)
return PTR_ERR(syscon->regmap); return PTR_ERR(syscon->regmap);
} }
syscon->dev = dev;
platform_set_drvdata(pdev, syscon); platform_set_drvdata(pdev, syscon);
dev_info(dev, "syscon regmap start 0x%x end 0x%x registered\n", dev_info(dev, "syscon regmap start 0x%x end 0x%x registered\n",
......
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