Skip to content

Commit

Permalink
mfd: syscon: Removed unneeded field "dev" from private driver structure
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Alexander Shiyan authored and Samuel Ortiz committed Apr 5, 2013
1 parent 2154a2b commit ed21465
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/mfd/syscon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit ed21465

Please sign in to comment.