Commit:     cbcdc1debd02e1a2cbc1367ee7e0213e1041f738
Parent:     83f3aa3dc5a5014cb4dc344e503b082344d8fe1e
Author:     David Brownell <[EMAIL PROTECTED]>
AuthorDate: Sat Feb 10 01:45:13 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Sun Feb 11 10:51:28 2007 -0800

    [PATCH] PNP: export pnp_bus_type
    The PNP framework doesn't export "pnp_bus_type", which is an unfortunate
    exception to the policy followed by pretty much every other bus.  I noticed
    this when I had to find a device in order to provide its platform_data.
    Note that per advice from Arjan, the "export" scope has been been minimized 
    avoid the hundred-plus bytes needed to support access from modules.  In this
    case, the symbol is only needed by statically linked kernel code that lives
    outside the drivers/pnp directory.
    Signed-off-by: David Brownell <[EMAIL PROTECTED]>
    Cc: Adam Belay <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 drivers/pnp/base.h  |    1 -
 include/linux/pnp.h |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/pnp/base.h b/drivers/pnp/base.h
index 6b8c4cf..31a633f 100644
--- a/drivers/pnp/base.h
+++ b/drivers/pnp/base.h
@@ -1,4 +1,3 @@
-extern struct bus_type pnp_bus_type;
 extern spinlock_t pnp_lock;
 void *pnp_alloc(long size);
 int pnp_interface_attach_device(struct pnp_dev *dev);
diff --git a/include/linux/pnp.h b/include/linux/pnp.h
index ab8a8dd..9a5226f 100644
--- a/include/linux/pnp.h
+++ b/include/linux/pnp.h
@@ -352,6 +352,8 @@ struct pnp_protocol {
        (dev) = protocol_to_pnp_dev((dev)->
+extern struct bus_type pnp_bus_type;
 #if defined(CONFIG_PNP)
 /* device management */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to