summaryrefslogtreecommitdiff
path: root/include/linux/pnp.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andy.shevchenko@gmail.com>2024-05-28 13:25:03 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-05-28 21:53:51 +0200
commitedcde848c01eb071a91d479a6b3101d9cf48e905 (patch)
tree9d1a5d4f902f4c2e4b79dd4c8c8e8a2676ac7528 /include/linux/pnp.h
parentc7a5096781732e0f9784551309484f3e103f6750 (diff)
downloadlwn-edcde848c01eb071a91d479a6b3101d9cf48e905.tar.gz
lwn-edcde848c01eb071a91d479a6b3101d9cf48e905.zip
PNP: Hide pnp_bus_type from the non-PNP code
The pnp_bus_type is defined only when CONFIG_PNP=y, while being not guarded by ifdeffery in the header. Moreover, it's not used outside of the PNP code. Move it to the internal header to make sure no-one will try to (ab)use it. Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/pnp.h')
-rw-r--r--include/linux/pnp.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/pnp.h b/include/linux/pnp.h
index a8def1cea32c..7f2ff95d2deb 100644
--- a/include/linux/pnp.h
+++ b/include/linux/pnp.h
@@ -435,8 +435,6 @@ struct pnp_protocol {
#define protocol_for_each_dev(protocol, dev) \
list_for_each_entry(dev, &(protocol)->devices, protocol_list)
-extern const struct bus_type pnp_bus_type;
-
#if defined(CONFIG_PNP)
/* device management */