mmc: core: Override -ENOSYS upon resume of un-suspended device

If MMC_CAP_AGGRESSIVE_PM is not defined, then the bus device
will not suspend. However, it'd inform the PM framework that
it has suspended successfully so as to avoid false error logs.

Whereas during resume, it'd return -ENOSYS if resume is invoked
without suspend. But if MMC_CAP_AGGRESSIVE_PM is not defined,
it should not be considered as an error.

CRs-fixed: 2300132
Change-Id: Ie6bc5a32460a86e30e55eb920c1b51ed3cb58c1d
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
1 file changed