scsi: ufs: Tidy clocks list head usage
authorSzymon Mielczarek <szymonx.mielczarek@intel.com>
Mon, 5 Jun 2017 08:36:54 +0000 (11:36 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 00:48:08 +0000 (20:48 -0400)
commit566ec9ad315b46e7056472f4cd1d1b79bbad62da
tree6bae459c17ddbb361873b2af5f2e7b856b83ad58
parent6ff8a3b2a1e9ad5f0b559e7ef3b991918ef1caf9
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>
drivers/scsi/ufs/tc-dwc-g210-pci.c
drivers/scsi/ufs/ufshcd-pci.c
drivers/scsi/ufs/ufshcd-pltfrm.c
drivers/scsi/ufs/ufshcd.c