diff options
author | Szymon Mielczarek <szymonx.mielczarek@intel.com> | 2017-06-05 10:36:54 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-06-13 02:48:08 +0200 |
commit | 566ec9ad315b46e7056472f4cd1d1b79bbad62da (patch) | |
tree | 6bae459c17ddbb361873b2af5f2e7b856b83ad58 /drivers/scsi/ufs/ufshcd-pci.c | |
parent | scsi: atari_scsi: Use m68k_realnum_memory for FastRAM test (diff) | |
download | linux-566ec9ad315b46e7056472f4cd1d1b79bbad62da.tar.xz linux-566ec9ad315b46e7056472f4cd1d1b79bbad62da.zip |
scsi: ufs: Tidy clocks list head usage
Move the initialization of clocks list head to ufshcd_alloc_host() so
that every driver doesn't have to do it. Remove checks for the list head
being NULL because that is not possible.
Signed-off-by: Szymon Mielczarek <szymonx.mielczarek@intel.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ufs/ufshcd-pci.c')
-rw-r--r-- | drivers/scsi/ufs/ufshcd-pci.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/ufs/ufshcd-pci.c b/drivers/scsi/ufs/ufshcd-pci.c index 52b546fb509b..5dd4122cbd85 100644 --- a/drivers/scsi/ufs/ufshcd-pci.c +++ b/drivers/scsi/ufs/ufshcd-pci.c @@ -143,8 +143,6 @@ ufshcd_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) return err; } - INIT_LIST_HEAD(&hba->clk_list_head); - err = ufshcd_init(hba, mmio_base, pdev->irq); if (err) { dev_err(&pdev->dev, "Initialization failed\n"); |