patch-2.4.22 linux-2.4.22/include/asm-m68k/floppy.h

Next file: linux-2.4.22/include/asm-m68k/ioctls.h
Previous file: linux-2.4.22/include/asm-ia64/unwind.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/include/asm-m68k/floppy.h linux-2.4.22/include/asm-m68k/floppy.h
@@ -72,6 +72,7 @@
 		return inb_p(port);
 	else if(MACH_IS_SUN3X)
 		return sun3x_82072_fd_inb(port);
+	return 0;
 }
 
 static __inline__ void fd_outb(unsigned char value, int port)
@@ -88,9 +89,9 @@
 	if(MACH_IS_Q40)
 		return request_irq(FLOPPY_IRQ, floppy_hardint,SA_INTERRUPT,
 						   "floppy", floppy_hardint);
-	else if(MACH_IS_SUN3X) 
+	else if(MACH_IS_SUN3X)
 		return sun3xflop_request_irq();
-	
+	return -ENXIO;
 }
 
 static void fd_free_irq(void)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)