scsi: ufs: Clean up some rpm/spm level SysFS nodes upon remove
authorMichał Potomski <michalx.potomski@intel.com>
Fri, 12 May 2017 06:36:27 +0000 (08:36 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 19 May 2017 01:29:21 +0000 (21:29 -0400)
commit463f620b1256e0488d932088e04a372817e8c42e
tree4df6cb9688fbec67130446da72dc1f91a18c52b3
parenteeeb51d834d76c66784e7fe1a9ace3ce3f8d2af1
scsi: ufs: Clean up some rpm/spm level SysFS nodes upon remove

When reloading module these two attributes aren't cleaned up properly
and they persist causing warnings when trying to load module
again. Additionally they are not recreated properly due to that.

Signed-off-by: Michał Potomski <michalx.potomski@intel.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c