console: Keep ->start() and ->stop() balanced
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 21 Dec 2020 12:30:01 +0000 (14:30 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 15 Jan 2021 19:37:03 +0000 (14:37 -0500)
commit95aaf40254b44d614dc2eaca89b31f98598e4f27
treec3a7ffa91b3bd9f971fb8bc2143221f07579d83b
parent41f668b97c7ac8d519f15961b67fc52817115701
console: Keep ->start() and ->stop() balanced

There is no need to call ->start() for already started device. All the same,
there is no need to call ->stop() for devices still in use.

For now enforce this only for IOMUX case.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/console.c