aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-04-28 18:33:51 -0400
committerLen Brown <len.brown@intel.com>2008-04-29 03:22:15 -0400
commit1692b27bf37826f85f9c12f8468848885643532a (patch)
tree98124e58827ed76c17f487cafb88e5b6fc6afeee
parent4a490498643ea37520c315769b293085b6018ddd (diff)
PNP: make pnp_add_id() internal to PNP core
pnp_add_id() doesn't need to be exposed outside the PNP core, so move the declaration to an internal header file. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Acked-By: Rene Herman <rene.herman@gmail.com> Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r--drivers/pnp/base.h1
-rw-r--r--drivers/pnp/pnpacpi/core.c1
-rw-r--r--drivers/pnp/pnpbios/core.c1
-rw-r--r--include/linux/pnp.h2
4 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pnp/base.h b/drivers/pnp/base.h
index 31a633f65547..abefcc351521 100644
--- a/drivers/pnp/base.h
+++ b/drivers/pnp/base.h
@@ -1,5 +1,6 @@
1extern spinlock_t pnp_lock; 1extern spinlock_t pnp_lock;
2void *pnp_alloc(long size); 2void *pnp_alloc(long size);
3int pnp_add_id(struct pnp_id *id, struct pnp_dev *dev);
3int pnp_interface_attach_device(struct pnp_dev *dev); 4int pnp_interface_attach_device(struct pnp_dev *dev);
4void pnp_fixup_device(struct pnp_dev *dev); 5void pnp_fixup_device(struct pnp_dev *dev);
5void pnp_free_option(struct pnp_option *option); 6void pnp_free_option(struct pnp_option *option);
diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c
index 53f91068d0b0..4807d76f8a04 100644
--- a/drivers/pnp/pnpacpi/core.c
+++ b/drivers/pnp/pnpacpi/core.c
@@ -25,6 +25,7 @@
25#include <acpi/acpi_bus.h> 25#include <acpi/acpi_bus.h>
26#include <acpi/actypes.h> 26#include <acpi/actypes.h>
27 27
28#include "../base.h"
28#include "pnpacpi.h" 29#include "pnpacpi.h"
29 30
30static int num = 0; 31static int num = 0;
diff --git a/drivers/pnp/pnpbios/core.c b/drivers/pnp/pnpbios/core.c
index a8a51500e1e9..2a5353bceb24 100644
--- a/drivers/pnp/pnpbios/core.c
+++ b/drivers/pnp/pnpbios/core.c
@@ -69,6 +69,7 @@
69#include <asm/system.h> 69#include <asm/system.h>
70#include <asm/byteorder.h> 70#include <asm/byteorder.h>
71 71
72#include "../base.h"
72#include "pnpbios.h" 73#include "pnpbios.h"
73 74
74/* 75/*
diff --git a/include/linux/pnp.h b/include/linux/pnp.h
index b2f05c230f4b..9a05ab5515b6 100644
--- a/include/linux/pnp.h
+++ b/include/linux/pnp.h
@@ -403,7 +403,6 @@ void pnp_resource_change(struct resource *resource, resource_size_t start,
403/* protocol helpers */ 403/* protocol helpers */
404int pnp_is_active(struct pnp_dev *dev); 404int pnp_is_active(struct pnp_dev *dev);
405int compare_pnp_id(struct pnp_id *pos, const char *id); 405int compare_pnp_id(struct pnp_id *pos, const char *id);
406int pnp_add_id(struct pnp_id *id, struct pnp_dev *dev);
407int pnp_register_driver(struct pnp_driver *drv); 406int pnp_register_driver(struct pnp_driver *drv);
408void pnp_unregister_driver(struct pnp_driver *drv); 407void pnp_unregister_driver(struct pnp_driver *drv);
409 408
@@ -450,7 +449,6 @@ static inline void pnp_resource_change(struct resource *resource, resource_size_
450/* protocol helpers */ 449/* protocol helpers */
451static inline int pnp_is_active(struct pnp_dev *dev) { return 0; } 450static inline int pnp_is_active(struct pnp_dev *dev) { return 0; }
452static inline int compare_pnp_id(struct pnp_id *pos, const char *id) { return -ENODEV; } 451static inline int compare_pnp_id(struct pnp_id *pos, const char *id) { return -ENODEV; }
453static inline int pnp_add_id(struct pnp_id *id, struct pnp_dev *dev) { return -ENODEV; }
454static inline int pnp_register_driver(struct pnp_driver *drv) { return -ENODEV; } 452static inline int pnp_register_driver(struct pnp_driver *drv) { return -ENODEV; }
455static inline void pnp_unregister_driver(struct pnp_driver *drv) { } 453static inline void pnp_unregister_driver(struct pnp_driver *drv) { }
456 454