serial: sa1100: use platform_get_resource()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 4 Aug 2020 13:48:07 +0000 (16:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Aug 2020 13:02:06 +0000 (15:02 +0200)
commit465ddff7e4867fcb65e27fa7ff4d0bb0999e4500
treee8887c768e87684b8a5ffe500be4ef6cea26efa6
parent145f5646be67eb5613d9606c5cb5139bb00df8b9
serial: sa1100: use platform_get_resource()

Use platform_get_resource() to fetch the memory resource
instead of open-coded variant.

While here, fail the probe if no resource found or no port is added.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200804134807.11589-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sa1100.c