Skip to content

Commit

Permalink
x86: smartconnect: use module_acpi_driver to simplify the code
Browse files Browse the repository at this point in the history
module_acpi_driver() makes the code simpler by eliminating
boilerplate code.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
  • Loading branch information
Wei Yongjun authored and Matthew Garrett committed Sep 5, 2013
1 parent aa3b88a commit 4d26353
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/platform/x86/intel-smartconnect.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,6 @@ static struct acpi_driver smartconnect_driver = {
},
};

static int smartconnect_init(void)
{
return acpi_bus_register_driver(&smartconnect_driver);
}

static void smartconnect_exit(void)
{
acpi_bus_unregister_driver(&smartconnect_driver);
}

module_init(smartconnect_init);
module_exit(smartconnect_exit);
module_acpi_driver(smartconnect_driver);

MODULE_DEVICE_TABLE(acpi, smartconnect_ids);

0 comments on commit 4d26353

Please sign in to comment.