X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-sparc%2Ffloppy.h;h=780ee7ff9dc3d866a9e1665544b317b45365e086;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=484fae9b00e76ed89ddb015225cf2377dc280caf;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/asm-sparc/floppy.h b/include/asm-sparc/floppy.h index 484fae9b0..780ee7ff9 100644 --- a/include/asm-sparc/floppy.h +++ b/include/asm-sparc/floppy.h @@ -213,7 +213,7 @@ unsigned long pdma_size; volatile int doing_pdma = 0; /* This is software state */ -char *pdma_base = 0; +char *pdma_base = NULL; unsigned long pdma_areasize; /* Common routines to all controller types on the Sparc. */ @@ -264,7 +264,7 @@ static __inline__ void sun_fd_enable_dma(void) } /* Our low-level entry point in arch/sparc/kernel/entry.S */ -extern void floppy_hardint(int irq, void *unused, struct pt_regs *regs); +irqreturn_t floppy_hardint(int irq, void *unused, struct pt_regs *regs); static int sun_fd_request_irq(void) { @@ -312,8 +312,8 @@ static int sun_floppy_init(void) } /* The sun4m lets us know if the controller is actually usable. */ - if(sparc_cpu_model == sun4m) { - prom_getproperty(fd_node, "status", state, sizeof(state)); + if(sparc_cpu_model == sun4m && + prom_getproperty(fd_node, "status", state, sizeof(state)) != -1) { if(!strcmp(state, "disabled")) { goto no_sun_fdc; }