aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2008-04-28 18:34:11 -0400
committerLen Brown <len.brown@intel.com>2008-04-29 03:22:22 -0400
commit2cd1393098073426256cb4543c897f8c340d0b93 (patch)
tree159de386797a010e13e3ae3756da0f3056b15cab /include
parent6969c7ed558cf5e9eff01734be0174a296938092 (diff)
PNP: remove unused interfaces using pnp_resource_table
Rene Herman <rene.herman@gmail.com> recently removed the only in-tree driver uses of: pnp_init_resource_table() pnp_manual_config_dev() pnp_resource_change() in this change: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=109c53f840e551d6e99ecfd8b0131a968332c89f These are no longer used in the PNP core either, so we can just remove them completely. It's possible that there are out-of-tree drivers that use these interfaces. They should be changed to either (1) use PNP quirks to work around broken hardware or firmware, or (2) use the sysfs interfaces to control resource usage from userspace. 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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pnp.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/pnp.h b/include/linux/pnp.h
index 1737f071787a..e8187d9faf01 100644
--- a/include/linux/pnp.h
+++ b/include/linux/pnp.h
@@ -390,18 +390,13 @@ int pnp_register_port_resource(struct pnp_dev *dev, struct pnp_option *option,
390 struct pnp_port *data); 390 struct pnp_port *data);
391int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option, 391int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option,
392 struct pnp_mem *data); 392 struct pnp_mem *data);
393void pnp_init_resource_table(struct pnp_resource_table *table);
394void pnp_init_resources(struct pnp_dev *dev); 393void pnp_init_resources(struct pnp_dev *dev);
395int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res,
396 int mode);
397int pnp_auto_config_dev(struct pnp_dev *dev); 394int pnp_auto_config_dev(struct pnp_dev *dev);
398int pnp_validate_config(struct pnp_dev *dev); 395int pnp_validate_config(struct pnp_dev *dev);
399int pnp_start_dev(struct pnp_dev *dev); 396int pnp_start_dev(struct pnp_dev *dev);
400int pnp_stop_dev(struct pnp_dev *dev); 397int pnp_stop_dev(struct pnp_dev *dev);
401int pnp_activate_dev(struct pnp_dev *dev); 398int pnp_activate_dev(struct pnp_dev *dev);
402int pnp_disable_dev(struct pnp_dev *dev); 399int pnp_disable_dev(struct pnp_dev *dev);
403void pnp_resource_change(struct resource *resource, resource_size_t start,
404 resource_size_t size);
405 400
406/* protocol helpers */ 401/* protocol helpers */
407int pnp_is_active(struct pnp_dev *dev); 402int pnp_is_active(struct pnp_dev *dev);
@@ -438,16 +433,13 @@ static inline int pnp_register_irq_resource(struct pnp_dev *dev, struct pnp_opti
438static inline int pnp_register_dma_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_dma *data) { return -ENODEV; } 433static inline int pnp_register_dma_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_dma *data) { return -ENODEV; }
439static inline int pnp_register_port_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_port *data) { return -ENODEV; } 434static inline int pnp_register_port_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_port *data) { return -ENODEV; }
440static inline int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_mem *data) { return -ENODEV; } 435static inline int pnp_register_mem_resource(struct pnp_dev *dev, struct pnp_option *option, struct pnp_mem *data) { return -ENODEV; }
441static inline void pnp_init_resource_table(struct pnp_resource_table *table) { }
442static inline void pnp_init_resources(struct pnp_dev *dev) { } 436static inline void pnp_init_resources(struct pnp_dev *dev) { }
443static inline int pnp_manual_config_dev(struct pnp_dev *dev, struct pnp_resource_table *res, int mode) { return -ENODEV; }
444static inline int pnp_auto_config_dev(struct pnp_dev *dev) { return -ENODEV; } 437static inline int pnp_auto_config_dev(struct pnp_dev *dev) { return -ENODEV; }
445static inline int pnp_validate_config(struct pnp_dev *dev) { return -ENODEV; } 438static inline int pnp_validate_config(struct pnp_dev *dev) { return -ENODEV; }
446static inline int pnp_start_dev(struct pnp_dev *dev) { return -ENODEV; } 439static inline int pnp_start_dev(struct pnp_dev *dev) { return -ENODEV; }
447static inline int pnp_stop_dev(struct pnp_dev *dev) { return -ENODEV; } 440static inline int pnp_stop_dev(struct pnp_dev *dev) { return -ENODEV; }
448static inline int pnp_activate_dev(struct pnp_dev *dev) { return -ENODEV; } 441static inline int pnp_activate_dev(struct pnp_dev *dev) { return -ENODEV; }
449static inline int pnp_disable_dev(struct pnp_dev *dev) { return -ENODEV; } 442static inline int pnp_disable_dev(struct pnp_dev *dev) { return -ENODEV; }
450static inline void pnp_resource_change(struct resource *resource, resource_size_t start, resource_size_t size) { }
451 443
452/* protocol helpers */ 444/* protocol helpers */
453static inline int pnp_is_active(struct pnp_dev *dev) { return 0; } 445static inline int pnp_is_active(struct pnp_dev *dev) { return 0; }