Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09bc85b0 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by James Bottomley
Browse files

[SCSI] a2091: Reindentation

parent 900e8d6b
Loading
Loading
Loading
Loading
+150 −149
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@

#include <linux/stat.h>


#define DMA(ptr)	((a2091_scsiregs *)((ptr)->base))
#define HDATA(ptr)	((struct WD33C93_hostdata *)((ptr)->hostdata))

@@ -49,10 +50,9 @@ static int dma_setup(struct scsi_cmnd *cmd, int dir_in)
	struct Scsi_Host *instance = cmd->device->host;

	/* don't allow DMA if the physical address is bad */
    if (addr & A2091_XFER_MASK)
    {
	HDATA(instance)->dma_bounce_len = (cmd->SCp.this_residual + 511)
	    & ~0x1ff;
	if (addr & A2091_XFER_MASK) {
		HDATA(instance)->dma_bounce_len =
			(cmd->SCp.this_residual + 511) & ~0x1ff;
		HDATA(instance)->dma_bounce_buffer =
			kmalloc(HDATA(instance)->dma_bounce_len, GFP_KERNEL);

@@ -183,9 +183,10 @@ static int __init a2091_detect(struct scsi_host_template *tpnt)
		HDATA(instance)->no_sync = 0xff;
		HDATA(instance)->fast = 0;
		HDATA(instance)->dma_mode = CTRL_DMA;
	wd33c93_init(instance, regs, dma_setup, dma_stop, WD33C93_FS_8_10);
	if (request_irq(IRQ_AMIGA_PORTS, a2091_intr, IRQF_SHARED, "A2091 SCSI",
			instance))
		wd33c93_init(instance, regs, dma_setup, dma_stop,
			     WD33C93_FS_8_10);
		if (request_irq(IRQ_AMIGA_PORTS, a2091_intr, IRQF_SHARED,
				"A2091 SCSI", instance))
			goto unregister;
		DMA(instance)->CNTR = CNTR_PDMD | CNTR_INTEN;
		num_a2091++;
+21 −21

File changed.

Contains only whitespace changes.