From: Sinan Kaya <okaya@kernel.org> To: linux-next@vger.kernel.org Cc: linux-acpi@vger.kernel.org, Sinan Kaya <okaya@kernel.org>, "Rafael J. Wysocki" <rjw@rjwysocki.net>, Len Brown <lenb@kernel.org>, open list <linux-kernel@vger.kernel.org> Subject: [PATCH v2 01/11] ACPI / LPSS: Add guards against CONFIG_PCI Date: Sat, 22 Dec 2018 09:07:10 +0000 [thread overview] Message-ID: <20181222090720.19234-2-okaya@kernel.org> (raw) In-Reply-To: <20181222090720.19234-1-okaya@kernel.org> We can now compile ACPI without PCI support. If code depends on CONFIG_PCI, it needs to explicitly guard that piece. Signed-off-by: Sinan Kaya <okaya@kernel.org> --- drivers/acpi/acpi_lpss.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c index 5f94c35d165f..4148abcdf9ef 100644 --- a/drivers/acpi/acpi_lpss.c +++ b/drivers/acpi/acpi_lpss.c @@ -534,8 +534,11 @@ static struct device *acpi_lpss_find_device(const char *hid, const char *uid) dev = bus_find_device(&platform_bus_type, NULL, &data, match_hid_uid); if (dev) return dev; - +#ifdef CONFIG_PCI return bus_find_device(&pci_bus_type, NULL, &data, match_hid_uid); +#else + return NULL; +#endif } static bool acpi_lpss_dep(struct acpi_device *adev, acpi_handle handle) -- 2.19.0
WARNING: multiple messages have this Message-ID (diff)
From: Sinan Kaya <okaya@kernel.org> To: linux-next@vger.kernel.org Cc: linux-acpi@vger.kernel.org, Sinan Kaya <okaya@kernel.org>, "Rafael J. Wysocki" <rjw@rjwysocki.net>, Len Brown <lenb@kernel.org>, linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2 01/11] ACPI / LPSS: Add guards against CONFIG_PCI Date: Sat, 22 Dec 2018 09:07:10 +0000 [thread overview] Message-ID: <20181222090720.19234-2-okaya@kernel.org> (raw) In-Reply-To: <20181222090720.19234-1-okaya@kernel.org> We can now compile ACPI without PCI support. If code depends on CONFIG_PCI, it needs to explicitly guard that piece. Signed-off-by: Sinan Kaya <okaya@kernel.org> --- drivers/acpi/acpi_lpss.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c index 5f94c35d165f..4148abcdf9ef 100644 --- a/drivers/acpi/acpi_lpss.c +++ b/drivers/acpi/acpi_lpss.c @@ -534,8 +534,11 @@ static struct device *acpi_lpss_find_device(const char *hid, const char *uid) dev = bus_find_device(&platform_bus_type, NULL, &data, match_hid_uid); if (dev) return dev; - +#ifdef CONFIG_PCI return bus_find_device(&pci_bus_type, NULL, &data, match_hid_uid); +#else + return NULL; +#endif } static bool acpi_lpss_dep(struct acpi_device *adev, acpi_handle handle) -- 2.19.0
next parent reply other threads:[~2018-12-22 9:07 UTC|newest] Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <20181222090720.19234-1-okaya@kernel.org> 2018-12-22 9:07 ` Sinan Kaya [this message] 2018-12-22 9:07 ` [PATCH v2 01/11] ACPI / LPSS: Add guards against CONFIG_PCI Sinan Kaya 2018-12-23 21:45 ` Rafael J. Wysocki 2018-12-23 22:21 ` Sinan Kaya 2018-12-22 9:07 ` [PATCH v2 02/11] ata: make PCI dependency explicit for PATA_ACPI Sinan Kaya 2018-12-22 9:07 ` Sinan Kaya 2018-12-22 9:07 ` [PATCH v2 03/11] vga-switcheroo: make PCI dependency explicit Sinan Kaya 2018-12-22 9:07 ` Sinan Kaya 2018-12-22 16:40 ` Lukas Wunner 2018-12-22 16:40 ` Lukas Wunner 2018-12-22 23:00 ` Sinan Kaya 2018-12-22 23:00 ` Sinan Kaya 2018-12-23 17:15 ` Lukas Wunner 2018-12-23 17:15 ` Lukas Wunner 2018-12-23 23:13 ` Sinan Kaya 2018-12-23 23:13 ` Sinan Kaya 2018-12-24 9:27 ` Daniel Vetter 2018-12-22 9:07 ` [PATCH v2 04/11] platform/x86: " Sinan Kaya 2018-12-22 9:07 ` Sinan Kaya 2018-12-22 9:07 ` [PATCH v2 05/11] platform/x86: intel_pmc: Hide PCI specific pieces behind CONFIG_PCI Sinan Kaya 2018-12-22 9:07 ` Sinan Kaya 2018-12-22 9:07 ` [PATCH v2 06/11] apple-gmux: Make PCI dependency explicit Sinan Kaya 2018-12-22 9:07 ` Sinan Kaya 2018-12-22 9:07 ` [PATCH v2 07/11] drivers: thermal: Hide PCI driver when CONFIG_PCI is unset Sinan Kaya 2018-12-22 9:07 ` Sinan Kaya 2018-12-23 21:48 ` Rafael J. Wysocki 2018-12-23 22:23 ` Sinan Kaya 2018-12-22 9:07 ` [PATCH v2 08/11] ASoC: Intel: Make PCI dependency explicit Sinan Kaya 2018-12-22 9:07 ` Sinan Kaya 2018-12-22 9:07 ` [PATCH v2 09/11] mmc: add PCI dependency into IOSF_MBI Sinan Kaya 2018-12-22 9:07 ` Sinan Kaya 2018-12-22 9:07 ` [PATCH v2 10/11] x86: select IOSF_MBI only when CONFIG_PCI is set Sinan Kaya 2018-12-22 9:07 ` Sinan Kaya 2018-12-22 9:07 ` [PATCH v2 11/11] drivers: thermal: Make PCI dependency explicit Sinan Kaya 2018-12-22 9:07 ` Sinan Kaya
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20181222090720.19234-2-okaya@kernel.org \ --to=okaya@kernel.org \ --cc=lenb@kernel.org \ --cc=linux-acpi@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-next@vger.kernel.org \ --cc=rjw@rjwysocki.net \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.