All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 1/2] mfd: syscon: Removed unneeded field "dev" from private driver structure
@ 2013-03-13 17:34 Alexander Shiyan
  2013-03-13 17:34 ` [PATCH v7 2/2] mfd: syscon: Add non-DT support Alexander Shiyan
  2013-04-05 15:58 ` [PATCH v7 1/2] mfd: syscon: Removed unneeded field "dev" from private driver structure Samuel Ortiz
  0 siblings, 2 replies; 10+ messages in thread
From: Alexander Shiyan @ 2013-03-13 17:34 UTC (permalink / raw)
  To: linux-kernel
  Cc: Arnd Bergmann, Dong Aisheng, Samuel Ortiz, Mark Brown,
	Thierry Reding, Greg Kroah-Hartman, Stephen Warren,
	Alexander Shiyan


Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 drivers/mfd/syscon.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/mfd/syscon.c b/drivers/mfd/syscon.c
index 61aea63..674af14 100644
--- a/drivers/mfd/syscon.c
+++ b/drivers/mfd/syscon.c
@@ -25,17 +25,15 @@
 static struct platform_driver syscon_driver;
 
 struct syscon {
-	struct device *dev;
 	void __iomem *base;
 	struct regmap *regmap;
 };
 
 static int syscon_match(struct device *dev, void *data)
 {
-	struct syscon *syscon = dev_get_drvdata(dev);
 	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)
@@ -130,7 +128,6 @@ static int syscon_probe(struct platform_device *pdev)
 		return PTR_ERR(syscon->regmap);
 	}
 
-	syscon->dev = dev;
 	platform_set_drvdata(pdev, syscon);
 
 	dev_info(dev, "syscon regmap start 0x%x end 0x%x registered\n",
-- 
1.7.12.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-04-05 15:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-13 17:34 [PATCH v7 1/2] mfd: syscon: Removed unneeded field "dev" from private driver structure Alexander Shiyan
2013-03-13 17:34 ` [PATCH v7 2/2] mfd: syscon: Add non-DT support Alexander Shiyan
2013-03-13 18:33   ` Stephen Warren
2013-03-13 18:43     ` Re[2]: " Alexander Shiyan
2013-03-13 18:55       ` Stephen Warren
2013-03-14  2:51   ` Dong Aisheng
2013-03-15  4:26   ` Re[2]: " Alexander Shiyan
2013-03-15 10:42     ` Arnd Bergmann
2013-03-16  6:20       ` Re[4]: " Alexander Shiyan
2013-04-05 15:58 ` [PATCH v7 1/2] mfd: syscon: Removed unneeded field "dev" from private driver structure Samuel Ortiz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.