aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2020-11-26 09:46:43 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-09 19:48:10 +0100
commit603012f78a3f5cb2e7f529b8e318321117a9cf7c (patch)
tree3f29aa287a09a5c789cec0d9938f8a392d5bfa91 /drivers/tty
parenttty: Fix whitespace inconsistencies in vt_io_ioctl (diff)
downloadlinux-dev-603012f78a3f5cb2e7f529b8e318321117a9cf7c.tar.xz
linux-dev-603012f78a3f5cb2e7f529b8e318321117a9cf7c.zip
serial: imx: Remove unneeded of_device_get_match_data() NULL check
Since 5.10-rc1 i.MX is a devicetree-only platform and the NULL check on of_device_get_match_data() is no longer needed. This check was only needed when this driver supported both DT and non-DT platforms. Remove the unneeded of_device_get_match_data() NULL check. Signed-off-by: Fabio Estevam <festevam@gmail.com> Link: https://lore.kernel.org/r/20201126124643.3371-1-festevam@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/imx.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
index cafa88df5a85..2452e57a5663 100644
--- a/drivers/tty/serial/imx.c
+++ b/drivers/tty/serial/imx.c
@@ -2174,9 +2174,6 @@ static int imx_uart_probe_dt(struct imx_port *sport,
int ret;
sport->devdata = of_device_get_match_data(&pdev->dev);
- if (!sport->devdata)
- /* no device tree device */
- return 1;
ret = of_alias_get_id(np, "serial");
if (ret < 0) {