Skip to content

Commit

Permalink
[PATCH] Sun3 SCSI: Make sun3 scsi drivers compile/work again
Browse files Browse the repository at this point in the history
Make sun3 scsi drivers compile/work again (though with way too many warnings...)

Tested on 3/50, 3/60.

Signed-off-by: Sam Creasey <sammy@sammy.net>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Sam Creasey authored and Linus Torvalds committed Dec 9, 2006
1 parent a3a79bd commit c39e7ee
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion drivers/scsi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1737,7 +1737,7 @@ config SCSI_NCR53C7xx_FAST

config SUN3_SCSI
tristate "Sun3 NCR5380 SCSI"
depends on SUN3 && SCSI && BROKEN
depends on SUN3 && SCSI
select SCSI_SPI_ATTRS
help
This option will enable support for the OBIO (onboard io) NCR5380
Expand Down
4 changes: 2 additions & 2 deletions drivers/scsi/sun3_NCR5380.c
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ static irqreturn_t NCR5380_intr (int irq, void *dev_id)
NCR_PRINT(NDEBUG_INTR);
if ((NCR5380_read(STATUS_REG) & (SR_SEL|SR_IO)) == (SR_SEL|SR_IO)) {
done = 0;
ENABLE_IRQ();
// ENABLE_IRQ();
INT_PRINTK("scsi%d: SEL interrupt\n", HOSTNO);
NCR5380_reselect(instance);
(void) NCR5380_read(RESET_PARITY_INTERRUPT_REG);
Expand Down Expand Up @@ -1304,7 +1304,7 @@ static irqreturn_t NCR5380_intr (int irq, void *dev_id)
INT_PRINTK("scsi%d: PHASE MISM or EOP interrupt\n", HOSTNO);
NCR5380_dma_complete( instance );
done = 0;
ENABLE_IRQ();
// ENABLE_IRQ();
} else
#endif /* REAL_DMA */
{
Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/sun3_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@
#define REAL_DMA

#include "scsi.h"
#include "initio.h"
#include <scsi/scsi_host.h>
#include "sun3_scsi.h"
#include "NCR5380.h"

static void NCR5380_print(struct Scsi_Host *instance);

Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/sun3_scsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ struct sun3_udc_regs {
*
*/


#include "NCR5380.h"

#if NDEBUG & NDEBUG_ARBITRATION
#define ARB_PRINTK(format, args...) \
Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/sun3_scsi_vme.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
#define REAL_DMA

#include "scsi.h"
#include "initio.h"
#include <scsi/scsi_host.h>
#include "sun3_scsi.h"
#include "NCR5380.h"

extern int sun3_map_test(unsigned long, char *);

Expand Down

0 comments on commit c39e7ee

Please sign in to comment.