[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <D6D887BA8C9DFF48B5233887EF04654109F12EC332@bgsmsx502.gar.corp.intel.com>
Date: Mon, 28 Nov 2011 11:10:30 +0530
From: "R, Durgadoss" <durgadoss.r@...el.com>
To: Axel Lin <axel.lin@...il.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC: "Liu, Hong" <hong.liu@...el.com>, Daniel Drake <dsd@...top.org>,
Matthew Garrett <mjg@...hat.com>,
"platform-driver-x86@...r.kernel.org"
<platform-driver-x86@...r.kernel.org>
Subject: RE: [PATCH] platform-drivers-x86: convert drivers/platform/x86/* to
use module_platform_driver()
Hi,
Thanks for the nice clean up for intel_mid_thermal.c
From which kernel version is this new macro supported ?
> -----Original Message-----
> From: Axel Lin [mailto:axel.lin@...il.com]
> Sent: Saturday, November 26, 2011 9:45 AM
> To: linux-kernel@...r.kernel.org
> Cc: Liu, Hong; R, Durgadoss; Daniel Drake; Matthew Garrett; platform-driver-
> x86@...r.kernel.org
> Subject: [PATCH] platform-drivers-x86: convert drivers/platform/x86/* to use
> module_platform_driver()
>
> This patch converts the drivers in drivers/platform/x86/* to use the
> module_platform_driver() macro which makes the code smaller and a bit
> simpler.
>
> Cc: Hong Liu <hong.liu@...el.com>
> Cc: Durgadoss R <durgadoss.r@...el.com>
> Cc: Daniel Drake <dsd@...top.org>
> Signed-off-by: Axel Lin <axel.lin@...il.com>
> ---
Acked-by: Durgadoss R <Durgadoss.r@...el.com>
> diff --git a/drivers/platform/x86/intel_mid_thermal.c
> b/drivers/platform/x86/intel_mid_thermal.c
> index ccd7b1f..e4cc992 100644
> --- a/drivers/platform/x86/intel_mid_thermal.c
> +++ b/drivers/platform/x86/intel_mid_thermal.c
> @@ -565,18 +565,7 @@ static struct platform_driver mid_thermal_driver = {
> .id_table = therm_id_table,
> };
>
> -static int __init mid_thermal_module_init(void)
> -{
> - return platform_driver_register(&mid_thermal_driver);
> -}
> -
> -static void __exit mid_thermal_module_exit(void)
> -{
> - platform_driver_unregister(&mid_thermal_driver);
> -}
> -
> -module_init(mid_thermal_module_init);
> -module_exit(mid_thermal_module_exit);
> +module_platform_driver(mid_thermal_driver);
Thanks,
Durga
Powered by blists - more mailing lists