]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
serial: 8250_dw: Drop wrong use of ACPI_PTR()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 5 Oct 2021 13:45:16 +0000 (16:45 +0300)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 13 Jan 2022 17:42:32 +0000 (18:42 +0100)
commit75ca7c8c890523f40aaf479ca6d9c42f9db95e44
treecf09e1b358bd43dfe20f512570dcf707d8adb98b
parent0a9222ee2a953984f4fcc76ae3b2c200f7f1e514
serial: 8250_dw: Drop wrong use of ACPI_PTR()

BugLink: https://bugs.launchpad.net/bugs/1953387
[ Upstream commit ebabb77a2a115b6c5e68f7364b598310b5f61fb2 ]

ACPI_PTR() is more harmful than helpful. For example, in this case
if CONFIG_ACPI=n, the ID table left unused which is not what we want.

Instead of adding ifdeffery here and there, drop ACPI_PTR().

Fixes: 6a7320c4669f ("serial: 8250_dw: Add ACPI 5.0 support")
Reported-by: Daniel Palmer <daniel@0x0f.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20211005134516.23218-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/tty/serial/8250/8250_dw.c