Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ff1af70 authored by Wei Yongjun's avatar Wei Yongjun Committed by Matthew Garrett
Browse files

x86: irst: use module_acpi_driver to simplify the code



module_acpi_driver() makes the code simpler by eliminating
boilerplate code.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarMatthew Garrett <matthew.garrett@nebula.com>
parent 4d263536
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -193,17 +193,6 @@ static struct acpi_driver irst_driver = {
	},
};

static int irst_init(void)
{
	return acpi_bus_register_driver(&irst_driver);
}

static void irst_exit(void)
{
	acpi_bus_unregister_driver(&irst_driver);
}

module_init(irst_init);
module_exit(irst_exit);
module_acpi_driver(irst_driver);

MODULE_DEVICE_TABLE(acpi, irst_ids);