Commit 0de2580f authored by Rahul Tanwar's avatar Rahul Tanwar Committed by Greg Kroah-Hartman
Browse files

serial: lantiq: Use proper DT compatible string



Use explicit string instead of a macro for devicetree compatible string.

This series of patches is to add support for multiple SoCs which reuse the same
serial controller IP. The following patches will add another compatible string
to support new Lightning Mountain(LGM) SoC. So it makes sense to have the
compatible strings explicitly mentioned instead of a fixed macro.

Suggested-by: default avatarAndy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: default avatarRahul Tanwar <rahul.tanwar@linux.intel.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@intel.com>
Link: https://lore.kernel.org/r/57e2b69e9fbd93328a477b4c7dd2dcc78784ecb1.1565257887.git.rahul.tanwar@linux.intel.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4f912b89
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -693,7 +693,7 @@ lqasc_serial_early_console_setup(struct earlycon_device *device,
	device->con->write = lqasc_serial_early_console_write;
	return 0;
}
OF_EARLYCON_DECLARE(lantiq, DRVNAME, lqasc_serial_early_console_setup);
OF_EARLYCON_DECLARE(lantiq, "lantiq,asc", lqasc_serial_early_console_setup);

static struct uart_driver lqasc_reg = {
	.owner =	THIS_MODULE,
@@ -792,7 +792,7 @@ lqasc_probe(struct platform_device *pdev)
}

static const struct of_device_id ltq_asc_match[] = {
	{ .compatible = DRVNAME },
	{ .compatible = "lantiq,asc" },
	{},
};