Message ID | 20230804022913.1917023-1-xiangyang3@huawei.com |
---|---|
State | New |
Headers | show |
Series | [-next] scsi: arcmsr: Add __init and __exit for arcmsr_module_{init,exit} | expand |
Xiang,
> Add __init and __exit for arcmsr_module_{init,exit}
Applied to 6.6/scsi-staging, thanks!
On Fri, 04 Aug 2023 10:29:13 +0800, Xiang Yang wrote: > Add __init and __exit for arcmsr_module_{init,exit} > > Applied to 6.6/scsi-queue, thanks! [1/1] scsi: arcmsr: Add __init and __exit for arcmsr_module_{init,exit} https://git.kernel.org/mkp/scsi/c/e9b525b6ccbf
diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c index 2cd12c7f06c6..a66221c3b72f 100644 --- a/drivers/scsi/arcmsr/arcmsr_hba.c +++ b/drivers/scsi/arcmsr/arcmsr_hba.c @@ -1715,14 +1715,14 @@ static void arcmsr_shutdown(struct pci_dev *pdev) arcmsr_flush_adapter_cache(acb); } -static int arcmsr_module_init(void) +static int __init arcmsr_module_init(void) { int error = 0; error = pci_register_driver(&arcmsr_pci_driver); return error; } -static void arcmsr_module_exit(void) +static void __exit arcmsr_module_exit(void) { pci_unregister_driver(&arcmsr_pci_driver); }
Add __init and __exit for arcmsr_module_{init,exit} Signed-off-by: Xiang Yang <xiangyang3@huawei.com> --- drivers/scsi/arcmsr/arcmsr_hba.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)