mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: Adam Belay <abelay@novell.com>, ambx1@neo.rr.com
Cc: Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: [patch 2.6.12-rc2] PNP: export pnp_bus_type
Date: Wed, 27 Dec 2006 13:47:45 -0800	[thread overview]
Message-ID: <200612271347.47114.david-b@pacbell.net> (raw)

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.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>

Index: g26/drivers/pnp/base.h
===================================================================
--- g26.orig/drivers/pnp/base.h	2006-12-18 05:45:29.000000000 -0800
+++ g26/drivers/pnp/base.h	2006-12-18 05:45:41.000000000 -0800
@@ -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);
Index: g26/drivers/pnp/driver.c
===================================================================
--- g26.orig/drivers/pnp/driver.c	2006-07-03 10:45:14.000000000 -0700
+++ g26/drivers/pnp/driver.c	2006-12-18 05:41:56.000000000 -0800
@@ -199,6 +199,7 @@ struct bus_type pnp_bus_type = {
 	.suspend = pnp_bus_suspend,
 	.resume = pnp_bus_resume,
 };
+EXPORT_SYMBOL(pnp_bus_type);
 
 int pnp_register_driver(struct pnp_driver *drv)
 {
Index: g26/include/linux/pnp.h
===================================================================
--- g26.orig/include/linux/pnp.h	2006-12-18 05:45:29.000000000 -0800
+++ g26/include/linux/pnp.h	2006-12-27 13:22:58.000000000 -0800
@@ -352,6 +352,8 @@ struct pnp_protocol {
 	(dev) = protocol_to_pnp_dev((dev)->protocol_list.next))
 
 
+extern struct bus_type pnp_bus_type;
+
 #if defined(CONFIG_PNP)
 
 /* device management */

             reply	other threads:[~2006-12-27 21:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-27 21:47 David Brownell [this message]
2006-12-27 22:30 ` Arjan van de Ven
2006-12-27 23:59   ` David Brownell
2006-12-28 10:05     ` Arjan van de Ven
2006-12-28 22:10       ` David Brownell

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=200612271347.47114.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=abelay@novell.com \
    --cc=ambx1@neo.rr.com \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®