scsi: ufs: Use the resource-managed function to add devfreq device
commit4861ee15f2b7dee17a869d9edd3463b812f77636
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 8 Nov 2016 09:13:28 +0000 (8 18:13 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 9 Nov 2016 00:16:34 +0000 (8 19:16 -0500)
tree360cbfd56073c9e5ab92d21c45432374af0dd5a9
parentd0799621349dedc8c866d6405302df8eba38f410
scsi: ufs: Use the resource-managed function to add devfreq device

This patch uses the resource-managed to add the devfreq device.  This
function will make it easy to handle the devfreq device.

- struct devfreq *devm_devfreq_add_device(struct device *dev,
  struct devfreq_dev_profile *profile,
  const char *governor_name,
  void *data);
Cc: Vinayak Holikatti <vinholikatti@gmail.com>
Cc: James E.J. Bottomley <jejb@linux.vnet.ibm.com>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c