]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / drivers: fix typo in ACPI_DECLARE_PROBE_ENTRY macro
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 16 Aug 2016 15:59:52 +0000 (16:59 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 2 Sep 2016 20:21:34 +0000 (22:21 +0200)
commitfeb1a91ee65d1e5635a0f8f421fa5d8e7d4afcb0
tree02dc293e276726618c7546fb78367868a7e58b5b
parentf987612db0506b2cba4d9cae824062f861e0f3f2
ACPI / drivers: fix typo in ACPI_DECLARE_PROBE_ENTRY macro

When the ACPI_DECLARE_PROBE_ENTRY macro was added in
commit c786e949aa16 ("ACPI: Add early device probing infrastructure"),
a stub macro adding an unused entry was added for the !CONFIG_ACPI
Kconfig option case to make sure kernel code making use of the
macro did not require to be guarded within CONFIG_ACPI in order to
be compiled.

The stub macro was never used since all kernel code that defines
ACPI_DECLARE_PROBE_ENTRY entries is currently guarded within
CONFIG_ACPI; it contains a typo that should be nonetheless fixed.

Fix the typo in the stub (ie !CONFIG_ACPI) ACPI_DECLARE_PROBE_ENTRY()
macro so that it can actually be used if needed.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fixes: c786e949aa16 (ACPI: Add early device probing infrastructure)
Cc: 4.4+ <stable@vger.kernel.org> # 4.4+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/linux/acpi.h