]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/pnp.h
V4L/DVB (9276): videobuf-dvb: two functions are now static
[linux-2.6-omap-h63xx.git] / include / linux / pnp.h
index 1ce54b63085dd09b1ee5826694294969fe2a1f78..53b70fd1d9a535d92639a66757646ce5620e21f9 100644 (file)
@@ -21,7 +21,16 @@ struct pnp_dev;
 /*
  * Resource Management
  */
-struct resource *pnp_get_resource(struct pnp_dev *, unsigned int, unsigned int);
+#ifdef CONFIG_PNP
+struct resource *pnp_get_resource(struct pnp_dev *dev, unsigned long type,
+                               unsigned int num);
+#else
+static inline struct resource *pnp_get_resource(struct pnp_dev *dev,
+                       unsigned long type, unsigned int num)
+{
+       return NULL;
+}
+#endif
 
 static inline int pnp_resource_valid(struct resource *res)
 {