Skip to content

Commit

Permalink
serial: imx: Remove unneeded of_device_get_match_data() NULL check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabio Estevam authored and Greg Kroah-Hartman committed Dec 9, 2020
1 parent fa26b32 commit 603012f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/tty/serial/imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 603012f

Please sign in to comment.