[SCSI] ufshcd-pci: release ioremapped region during removing driver
authorAkinobu Mita <mita@fixstars.com>
Mon, 29 Jul 2013 19:06:01 +0000 (00:36 +0530)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 26 Aug 2013 08:51:27 +0000 (12:51 +0400)
commit36f4f3b672748e7d9786ef1e0ae5caefd337b668
treeac1fa61c58261a1c5a9a6e87bd606d4d7a665262
parent62694735ca95c74dac4eb9068d59801ac0ddebaf
[SCSI] ufshcd-pci: release ioremapped region during removing driver

Before commit 2953f850c3b80bdca004967c83733365d8aa0aa2 ("[SCSI] ufs:
use devres functions for ufshcd"), UFSHCI register was ioremapped by
each glue-driver (ufshcd-pltfrm and ufshcd-pci) during probing and it
was iounmapped by core-driver during removing driver.  The commit
converted ufshcd-pltfrm to use devres functions, but it didn't convert
ufshcd-pci.

Therefore, the change causes ufshcd-pci driver not to iounmap UFSHCI
register region during removing driver.  This fixes it by converting
ufshcd-pci to use devres functions.

Signed-off-by: Akinobu Mita <mita@fixstars.com>
Signed-off-by: Santosh Y <santoshsy@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/ufs/ufshcd-pci.c