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

Commit 53b9989b authored by Wei Yongjun's avatar Wei Yongjun Committed by Vinod Koul
Browse files

pch_dma: use module_pci_driver to simplify the code

Use the module_pci_driver() macro to make the code simpler
by eliminating module_init and module_exit calls.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch

)

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarVinod Koul <vinod.koul@linux.intel.com>
parent c6a0aec9
Loading
Loading
Loading
Loading
+1 −12
Original line number Original line Diff line number Diff line
@@ -1029,18 +1029,7 @@ static struct pci_driver pch_dma_driver = {
#endif
#endif
};
};


static int __init pch_dma_init(void)
module_pci_driver(pch_dma_driver);
{
	return pci_register_driver(&pch_dma_driver);
}

static void __exit pch_dma_exit(void)
{
	pci_unregister_driver(&pch_dma_driver);
}

module_init(pch_dma_init);
module_exit(pch_dma_exit);


MODULE_DESCRIPTION("Intel EG20T PCH / LAPIS Semicon ML7213/ML7223/ML7831 IOH "
MODULE_DESCRIPTION("Intel EG20T PCH / LAPIS Semicon ML7213/ML7223/ML7831 IOH "
		   "DMA controller driver");
		   "DMA controller driver");