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] [thread-next>] [day] [month] [year] [list]
Message-ID: <544AC56F16B56944AEC3BD4E3D591771602C593BF8@LIMKCMBX1.ad.analog.com>
Date:	Wed, 27 Mar 2013 09:20:26 +0000
From:	"Hennerich, Michael" <Michael.Hennerich@...log.com>
To:	Sachin Kamat <sachin.kamat@...aro.org>,
	"device-drivers-devel@...ckfin.uclinux.org" 
	<device-drivers-devel@...ckfin.uclinux.org>,
	LKML <linux-kernel@...r.kernel.org>
CC:	"sameo@...ux.intel.com" <sameo@...ux.intel.com>
Subject: AW: [PATCH 1/1] mfd: adp5520: Use module_i2c_driver()


________________________________________
Von: Sachin Kamat [sachin.kamat@...aro.org]
Gesendet: Mittwoch, 27. März 2013 09:59
An: device-drivers-devel@...ckfin.uclinux.org; LKML
Cc: Hennerich, Michael; sameo@...ux.intel.com; sachin.kamat@...aro.org
Betreff: Re: [PATCH 1/1] mfd: adp5520: Use module_i2c_driver()

On 15 March 2013 17:10, Sachin Kamat <sachin.kamat@...aro.org> wrote:
> module_i2c_driver() removes some boilerplate and makes the code
> simple.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@...aro.org>

Acked-by: Michael Hennerich <michael.hennerich@...log.com>

> ---
>  drivers/mfd/adp5520.c |   12 +-----------
>  1 files changed, 1 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/mfd/adp5520.c b/drivers/mfd/adp5520.c
> index 210dd03..5ab021f 100644
> --- a/drivers/mfd/adp5520.c
> +++ b/drivers/mfd/adp5520.c
> @@ -360,17 +360,7 @@ static struct i2c_driver adp5520_driver = {
>         .id_table       = adp5520_id,
>  };
>
> -static int __init adp5520_init(void)
> -{
> -       return i2c_add_driver(&adp5520_driver);
> -}
> -module_init(adp5520_init);
> -
> -static void __exit adp5520_exit(void)
> -{
> -       i2c_del_driver(&adp5520_driver);
> -}
> -module_exit(adp5520_exit);
> +module_i2c_driver(adp5520_driver);
>
>  MODULE_AUTHOR("Michael Hennerich <hennerich@...ckfin.uclinux.org>");
>  MODULE_DESCRIPTION("ADP5520(01) PMIC-MFD Driver");
> --
> 1.7.4.1
>

ping...


--
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