Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79da525a authored by Mukesh Kumar Savaliya's avatar Mukesh Kumar Savaliya
Browse files

serial: msm_geni_serial: Keep unique compatibility for QUPV3 UART Driver



Whenever console OR HSUART is disabled from the defconfig, additional
compatible string causes probe to be called for respective HSUART OR
console driver. Hence remove the unwanted compatible string from the
driver.

Change-Id: I202bdfb187126f110c308fb83fb2c28210b557f3
Signed-off-by: default avatarMukesh Kumar Savaliya <msavaliy@codeaurora.org>
parent 5a580c0a
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
/*
 * Copyright (c) 2017, The Linux foundation. All rights reserved.
 * Copyright (c) 2017-2018, The Linux foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -2135,7 +2135,7 @@ msm_geni_serial_earlycon_setup(struct earlycon_device *dev,
exit_geni_serial_earlyconsetup:
	return ret;
}
OF_EARLYCON_DECLARE(msm_geni_serial, "qcom,msm-geni-uart",
OF_EARLYCON_DECLARE(msm_geni_serial, "qcom,msm-geni-console",
		msm_geni_serial_earlycon_setup);

static int console_register(struct uart_driver *drv)
@@ -2657,17 +2657,12 @@ static const struct dev_pm_ops msm_geni_serial_pm_ops = {
	.resume_noirq = msm_geni_serial_sys_resume_noirq,
};

static const struct of_device_id msm_geni_serial_match_table[] = {
	{ .compatible = "qcom,msm-geni-uart"},
	{},
};

static struct platform_driver msm_geni_serial_platform_driver = {
	.remove = msm_geni_serial_remove,
	.probe = msm_geni_serial_probe,
	.driver = {
		.name = "msm_geni_serial",
		.of_match_table = msm_geni_serial_match_table,
		.of_match_table = msm_geni_device_tbl,
		.pm = &msm_geni_serial_pm_ops,
	},
};