diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-10-10 09:04:58 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-01-06 23:57:46 -0500 |
commit | 53b9989bc75e185d0bf946e939ebe8534c8a9740 (patch) | |
tree | 3d5bf76ea555cc369e930cb1af7eff48bfb9038c /drivers | |
parent | c6a0aec9216064f756c4eda80be0720707c898d5 (diff) |
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: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/pch_dma.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/dma/pch_dma.c b/drivers/dma/pch_dma.c index eca1c4ddf039..aed6e0c117ed 100644 --- a/drivers/dma/pch_dma.c +++ b/drivers/dma/pch_dma.c | |||
@@ -1029,18 +1029,7 @@ static struct pci_driver pch_dma_driver = { | |||
1029 | #endif | 1029 | #endif |
1030 | }; | 1030 | }; |
1031 | 1031 | ||
1032 | static int __init pch_dma_init(void) | 1032 | module_pci_driver(pch_dma_driver); |
1033 | { | ||
1034 | return pci_register_driver(&pch_dma_driver); | ||
1035 | } | ||
1036 | |||
1037 | static void __exit pch_dma_exit(void) | ||
1038 | { | ||
1039 | pci_unregister_driver(&pch_dma_driver); | ||
1040 | } | ||
1041 | |||
1042 | module_init(pch_dma_init); | ||
1043 | module_exit(pch_dma_exit); | ||
1044 | 1033 | ||
1045 | MODULE_DESCRIPTION("Intel EG20T PCH / LAPIS Semicon ML7213/ML7223/ML7831 IOH " | 1034 | MODULE_DESCRIPTION("Intel EG20T PCH / LAPIS Semicon ML7213/ML7223/ML7831 IOH " |
1046 | "DMA controller driver"); | 1035 | "DMA controller driver"); |