diff options
author | Li Zetao <[email protected]> | 2023-08-15 16:08:33 +0800 |
---|---|---|
committer | Heiko Carstens <[email protected]> | 2023-08-23 14:37:42 +0200 |
commit | dedf98dd1cfb61cfc74be9248b90a49b42c6dead (patch) | |
tree | 9e50bd04a8003866565f2d0afdd11e4afdaff891 | |
parent | 6daf5a682463c6c44538995c72bde2be992dc8e0 (diff) |
s390/pci: use builtin_misc_device macro to simplify the code
Use the builtin_misc_device macro to simplify the code, which is the same
as declaring with device_initcall().
Signed-off-by: Li Zetao <[email protected]>
Acked-by: Niklas Schnelle <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Niklas Schnelle <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
-rw-r--r-- | arch/s390/pci/pci_clp.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/s390/pci/pci_clp.c b/arch/s390/pci/pci_clp.c index ee367798e388..ee90a91ed888 100644 --- a/arch/s390/pci/pci_clp.c +++ b/arch/s390/pci/pci_clp.c @@ -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); |