lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAP1dx+yVg+CfRFjy2dTs6JRpDP=3bF9do_NQbQtBThj+2ijV5g@mail.gmail.com>
Date:	Sun, 17 Feb 2013 10:57:16 +0800
From:	Dong Aisheng <dong.aisheng@...aro.org>
To:	Alexander Shiyan <shc_work@...l.ru>
Cc:	linux-kernel@...r.kernel.org, Samuel Ortiz <sameo@...ux.intel.com>,
	Mark Brown <broonie@...nsource.wolfsonmicro.com>,
	Arnd Bergmann <arnd@...db.de>
Subject: Re: [PATCH v2 2/3] mfd: syscon: Removed unneeded field "dev" from
 private driver structure

On 12 February 2013 02:42, Alexander Shiyan <shc_work@...l.ru> wrote:
>
> Signed-off-by: Alexander Shiyan <shc_work@...l.ru>

Acked-by: Dong Aisheng <dong.aisheng@...aro.org>

Regards
Dong Aisheng

> ---
>  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 e1886fb..4a7ed5a 100644
> --- a/drivers/mfd/syscon.c
> +++ b/drivers/mfd/syscon.c
> @@ -24,17 +24,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)
> @@ -129,7 +127,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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ