Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753982Ab3CPGYX (ORCPT ); Sat, 16 Mar 2013 02:24:23 -0400 Received: from fallback4.mail.ru ([94.100.176.42]:52450 "EHLO fallback4.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751224Ab3CPGYV (ORCPT ); Sat, 16 Mar 2013 02:24:21 -0400 From: Alexander Shiyan To: linux-kernel@vger.kernel.org Cc: Samuel Ortiz , Arnd Bergmann , Dong Aisheng , Mark Brown , Thierry Reding , Greg Kroah-Hartman , Stephen Warren , Alexander Shiyan Subject: [PATCH RESEND v7 1/2] mfd: syscon: Removed unneeded field "dev" from private driver structure Date: Sat, 16 Mar 2013 10:23:41 +0400 Message-Id: <1363415022-19658-1-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 1.7.12.4 X-Spam: Not detected X-Mras: Ok Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1324 Lines: 47 Signed-off-by: Alexander Shiyan Acked-by: Dong Aisheng Acked-by: Arnd Bergmann --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/