s390/pci: use builtin_misc_device macro to simplify the code
authorLi Zetao <lizetao1@huawei.com>
Tue, 15 Aug 2023 08:08:33 +0000 (16:08 +0800)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 23 Aug 2023 12:37:42 +0000 (14:37 +0200)
Use the builtin_misc_device macro to simplify the code, which is the same
as declaring with device_initcall().

Signed-off-by: Li Zetao <lizetao1@huawei.com>
Acked-by: Niklas Schnelle <schnelle@linux.ibm.com>
Link: https://lore.kernel.org/r/20230815080833.1103609-1-lizetao1@huawei.com
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/pci/pci_clp.c

index ee36779..ee90a91 100644 (file)
@@ -666,9 +666,4 @@ static struct miscdevice clp_misc_device = {
        .fops = &clp_misc_fops,
 };
 
-static int __init clp_misc_init(void)
-{
-       return misc_register(&clp_misc_device);
-}
-
-device_initcall(clp_misc_init);
+builtin_misc_device(clp_misc_device);