]> err.no Git - linux-2.6/commitdiff
[POWERPC] iSeries: We need vio_enable_interrupts
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 23 Jul 2007 01:55:32 +0000 (11:55 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 26 Jul 2007 06:12:17 +0000 (16:12 +1000)
Commit 3d0e91f7ace12499c4b00088e9a6b1361e1bb0ca introduced a requirement
for vio_enable_interrupts which iSeires has never needed.  So create a
dummy one.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/vio.h

index 0117b544ecbce1ff1c7741f3e55938bd31f34081..3a0975e2adadad1ff673b6880ae04ed33f016449 100644 (file)
@@ -80,6 +80,11 @@ extern const void *vio_get_attribute(struct vio_dev *vdev, char *which,
 extern struct vio_dev *vio_find_node(struct device_node *vnode);
 extern int vio_enable_interrupts(struct vio_dev *dev);
 extern int vio_disable_interrupts(struct vio_dev *dev);
+#else
+static inline int vio_enable_interrupts(struct vio_dev *dev)
+{
+       return 0;
+}
 #endif
 
 static inline struct vio_driver *to_vio_driver(struct device_driver *drv)