mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
To: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org,
	lenb@kernel.org, rui.zhang@intel.com, khali@linux-fr.org,
	ben-linux@fluff.org, w.sang@pengutronix.de,
	dmitry.torokhov@gmail.com, eric.piel@tremplin-utc.net,
	mjg@redhat.com, ike.pan@canonical.com, herton@canonical.com
Subject: Re: [PATCH 10/12] topstar-laptop: convert to module_acpi_driver()
Date: Fri, 29 Jun 2012 09:50:09 -0300	[thread overview]
Message-ID: <20120629125008.GA13595@herton-Z68MA-D2H-B3> (raw)
In-Reply-To: <1340881171-14811-11-git-send-email-mika.westerberg@linux.intel.com>

On Thu, Jun 28, 2012 at 01:59:29PM +0300, Mika Westerberg wrote:
> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
> ---
>  drivers/platform/x86/topstar-laptop.c |   22 +---------------------
>  1 file changed, 1 insertion(+), 21 deletions(-)

Acked-by: Herton R. Krzesinski <herton@canonical.com>

> 
> diff --git a/drivers/platform/x86/topstar-laptop.c b/drivers/platform/x86/topstar-laptop.c
> index d528daa..d727bfe 100644
> --- a/drivers/platform/x86/topstar-laptop.c
> +++ b/drivers/platform/x86/topstar-laptop.c
> @@ -186,27 +186,7 @@ static struct acpi_driver acpi_topstar_driver = {
>  		.notify = acpi_topstar_notify,
>  	},
>  };
> -
> -static int __init topstar_laptop_init(void)
> -{
> -	int ret;
> -
> -	ret = acpi_bus_register_driver(&acpi_topstar_driver);
> -	if (ret < 0)
> -		return ret;
> -
> -	pr_info("ACPI extras driver loaded\n");
> -
> -	return 0;
> -}
> -
> -static void __exit topstar_laptop_exit(void)
> -{
> -	acpi_bus_unregister_driver(&acpi_topstar_driver);
> -}
> -
> -module_init(topstar_laptop_init);
> -module_exit(topstar_laptop_exit);
> +module_acpi_driver(acpi_topstar_driver);
>  
>  MODULE_AUTHOR("Herton Ronaldo Krzesinski");
>  MODULE_DESCRIPTION("Topstar Laptop ACPI Extras driver");
> -- 
> 1.7.10
> 

-- 
[]'s
Herton

  reply	other threads:[~2012-06-29 12:50 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-28 10:59 [PATCH 00/12] ACPI: add module_acpi_driver() and convert drivers to it Mika Westerberg
2012-06-28 10:59 ` [PATCH 01/12] ACPI: introduce module_acpi_driver() helper macro Mika Westerberg
2012-06-28 10:59 ` [PATCH 02/12] ACPI/button: convert to module_acpi_driver() Mika Westerberg
2012-06-28 10:59 ` [PATCH 03/12] ACPI/fan: " Mika Westerberg
2012-06-28 10:59 ` [PATCH 04/12] ACPI/hed: " Mika Westerberg
2012-06-28 10:59 ` [PATCH 05/12] ACPI/sbshc: " Mika Westerberg
2012-06-28 10:59 ` [PATCH 06/12] i2c-scmi: " Mika Westerberg
2012-07-04 11:19   ` Jean Delvare
2012-06-28 10:59 ` [PATCH 07/12] Input: atlas_btns - " Mika Westerberg
2012-06-28 23:19   ` Dmitry Torokhov
2012-06-28 10:59 ` [PATCH 08/12] hp_accel: " Mika Westerberg
2012-06-29  7:50   ` Éric Piel
2012-06-28 10:59 ` [PATCH 09/12] ideapad: " Mika Westerberg
2012-07-04 10:29   ` Ike Panhc
2012-06-28 10:59 ` [PATCH 10/12] topstar-laptop: " Mika Westerberg
2012-06-29 12:50   ` Herton Ronaldo Krzesinski [this message]
2012-06-28 10:59 ` [PATCH 11/12] toshiba_bluetooth: " Mika Westerberg
2012-06-28 10:59 ` [PATCH 12/12] xo15-ebook: " Mika Westerberg
2012-07-13  8:15 ` [PATCH 00/12] ACPI: add module_acpi_driver() and convert drivers to it Mika Westerberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120629125008.GA13595@herton-Z68MA-D2H-B3 \
    --to=herton.krzesinski@canonical.com \
    --cc=ben-linux@fluff.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=eric.piel@tremplin-utc.net \
    --cc=herton@canonical.com \
    --cc=ike.pan@canonical.com \
    --cc=khali@linux-fr.org \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mika.westerberg@linux.intel.com \
    --cc=mjg@redhat.com \
    --cc=rui.zhang@intel.com \
    --cc=w.sang@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®