scsi: ufs: ufs-sprd: Fix vdd-mphy regulator leak on probe failure and remove

ufs_sprd_n6_init() enables the vdd-mphy regulator, but nothing ever
disables it again: the driver has no .exit callback and no other path calls
regulator_disable(), so the power rail stays enabled after a failed probe
as well as after driver removal.

The UFS core calls the vops .exit callback from ufshcd_hba_exit(), which
runs on probe failure and on remove, so an .exit hook is the natural place
to release the supply.  All other vendor drivers in drivers/ufs/host/
already provide one.

Fixes: df7320bac37e ("scsi: ufs: ufs-unisoc: Add support for Unisoc UFS host controller")
Signed-off-by: Xiangwu Lai <laixiangwu@cmss.chinamobile.com>
Link: https://patch.msgid.link/20261110065457.1280-1-laixiangwu@cmss.chinamobile.com
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
1 file changed