diff options
author | Venkatraman S <svenkatr@ti.com> | 2012-07-10 10:09:22 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-07-20 03:59:01 -0400 |
commit | 17ccafc4ef00716d022cac9ff64cef0aafe7c02a (patch) | |
tree | ba41897c0f2c6b7ebebe1a28d9fb69fedee44923 | |
parent | 3bd4dc9bdd4eeeb5da44c669e6169373e05afb3b (diff) |
[SCSI] ufs: use module_pci_driver
Use macro module_pci_driver and get rid of boilerplate code. No
functional changes.
Signed-off-by: Venkatraman S <svenkatr@ti.com>
Acked-by: Santosh Y <santoshsy@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r-- | drivers/scsi/ufs/ufshcd.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 6a4fd00117ca..40c43bfce681 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c | |||
@@ -1953,24 +1953,7 @@ static struct pci_driver ufshcd_pci_driver = { | |||
1953 | #endif | 1953 | #endif |
1954 | }; | 1954 | }; |
1955 | 1955 | ||
1956 | /** | 1956 | module_pci_driver(ufshcd_pci_driver); |
1957 | * ufshcd_init - Driver registration routine | ||
1958 | */ | ||
1959 | static int __init ufshcd_init(void) | ||
1960 | { | ||
1961 | return pci_register_driver(&ufshcd_pci_driver); | ||
1962 | } | ||
1963 | module_init(ufshcd_init); | ||
1964 | |||
1965 | /** | ||
1966 | * ufshcd_exit - Driver exit clean-up routine | ||
1967 | */ | ||
1968 | static void __exit ufshcd_exit(void) | ||
1969 | { | ||
1970 | pci_unregister_driver(&ufshcd_pci_driver); | ||
1971 | } | ||
1972 | module_exit(ufshcd_exit); | ||
1973 | |||
1974 | 1957 | ||
1975 | MODULE_AUTHOR("Santosh Yaragnavi <santosh.sy@samsung.com>, " | 1958 | MODULE_AUTHOR("Santosh Yaragnavi <santosh.sy@samsung.com>, " |
1976 | "Vinayak Holikatti <h.vinayak@samsung.com>"); | 1959 | "Vinayak Holikatti <h.vinayak@samsung.com>"); |