summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs/tc-dwc-g210-pci.c
diff options
context:
space:
mode:
authorSzymon Mielczarek <szymonx.mielczarek@intel.com>2017-06-05 10:36:54 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2017-06-13 02:48:08 +0200
commit566ec9ad315b46e7056472f4cd1d1b79bbad62da (patch)
tree6bae459c17ddbb361873b2af5f2e7b856b83ad58 /drivers/scsi/ufs/tc-dwc-g210-pci.c
parentscsi: atari_scsi: Use m68k_realnum_memory for FastRAM test (diff)
downloadlinux-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/tc-dwc-g210-pci.c')
-rw-r--r--drivers/scsi/ufs/tc-dwc-g210-pci.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/ufs/tc-dwc-g210-pci.c b/drivers/scsi/ufs/tc-dwc-g210-pci.c
index c09a0fef0fe6..325d5e14fc0d 100644
--- a/drivers/scsi/ufs/tc-dwc-g210-pci.c
+++ b/drivers/scsi/ufs/tc-dwc-g210-pci.c
@@ -130,8 +130,6 @@ tc_dwc_g210_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
return err;
}
- INIT_LIST_HEAD(&hba->clk_list_head);
-
hba->vops = &tc_dwc_g210_pci_hba_vops;
err = ufshcd_init(hba, mmio_base, pdev->irq);