public inbox for linux-input@vger.kernel.org
 help / color / mirror / Atom feed
From: Heiner Kallweit <hkallweit1@gmail.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Bjorn Helgaas <bhelgaas@google.com>
Cc: "open list:HID CORE LAYER" <linux-input@vger.kernel.org>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>
Subject: [PATCH 1/2] input: pc110pad: change PCI check to get rid of orphaned no_pci_devices
Date: Fri, 3 Apr 2026 00:17:35 +0200	[thread overview]
Message-ID: <cf519463-775a-4d43-be38-20742fdad407@gmail.com> (raw)
In-Reply-To: <dd9ea7c1-44f5-4364-a3d5-885b1c99159f@gmail.com>

As a prerequisite for removing no_pci_devices(), replace its usage here
with an equivalent check for presence of a PCI bus.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 drivers/input/mouse/pc110pad.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/mouse/pc110pad.c b/drivers/input/mouse/pc110pad.c
index efa58049f..c7a6df210 100644
--- a/drivers/input/mouse/pc110pad.c
+++ b/drivers/input/mouse/pc110pad.c
@@ -91,7 +91,7 @@ static int __init pc110pad_init(void)
 {
 	int err;
 
-	if (!no_pci_devices())
+	if (pci_find_next_bus(NULL))
 		return -ENODEV;
 
 	if (!request_region(pc110pad_io, 4, "pc110pad")) {
-- 
2.53.0



  reply	other threads:[~2026-04-02 22:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-02 22:15 [PATCH 0/2] PCI: Remove no_pci_devices Heiner Kallweit
2026-04-02 22:17 ` Heiner Kallweit [this message]
2026-04-06 17:23   ` [PATCH 1/2] input: pc110pad: change PCI check to get rid of orphaned no_pci_devices Bjorn Helgaas
2026-04-06 19:02     ` Dmitry Torokhov
2026-04-02 22:18 ` [PATCH 2/2] PCI: Remove no_pci_devices Heiner Kallweit

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=cf519463-775a-4d43-be38-20742fdad407@gmail.com \
    --to=hkallweit1@gmail.com \
    --cc=bhelgaas@google.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    /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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox