Commit d90349aa authored by Linus Torvalds's avatar Linus Torvalds

Merge bk://kernel.bkbits.net/davem/sparc-2.6

into home.osdl.org:/home/torvalds/v2.5/linux
parents f9bf472d a16a7cd8
...@@ -1125,16 +1125,17 @@ static ide_startstop_t reset_pollfunc (ide_drive_t *drive) ...@@ -1125,16 +1125,17 @@ static ide_startstop_t reset_pollfunc (ide_drive_t *drive)
return ide_stopped; return ide_stopped;
} }
void check_dma_crc (ide_drive_t *drive) static void check_dma_crc(ide_drive_t *drive)
{ {
#ifdef CONFIG_BLK_DEV_IDEDMA
if (drive->crc_count) { if (drive->crc_count) {
(void) HWIF(drive)->ide_dma_off_quietly(drive); (void) HWIF(drive)->ide_dma_off_quietly(drive);
ide_set_xfer_rate(drive, ide_auto_reduce_xfer(drive)); ide_set_xfer_rate(drive, ide_auto_reduce_xfer(drive));
if (drive->current_speed >= XFER_SW_DMA_0) if (drive->current_speed >= XFER_SW_DMA_0)
(void) HWIF(drive)->ide_dma_on(drive); (void) HWIF(drive)->ide_dma_on(drive);
} else { } else
(void)__ide_dma_off(drive); (void)__ide_dma_off(drive);
} #endif
} }
void pre_reset (ide_drive_t *drive) void pre_reset (ide_drive_t *drive)
......
...@@ -1320,6 +1320,7 @@ static int set_io_32bit(ide_drive_t *drive, int arg) ...@@ -1320,6 +1320,7 @@ static int set_io_32bit(ide_drive_t *drive, int arg)
static int set_using_dma (ide_drive_t *drive, int arg) static int set_using_dma (ide_drive_t *drive, int arg)
{ {
#ifdef CONFIG_BLK_DEV_IDEDMA
if (!drive->id || !(drive->id->capability & 1)) if (!drive->id || !(drive->id->capability & 1))
return -EPERM; return -EPERM;
if (HWIF(drive)->ide_dma_check == NULL) if (HWIF(drive)->ide_dma_check == NULL)
...@@ -1332,6 +1333,9 @@ static int set_using_dma (ide_drive_t *drive, int arg) ...@@ -1332,6 +1333,9 @@ static int set_using_dma (ide_drive_t *drive, int arg)
return -EIO; return -EIO;
} }
return 0; return 0;
#else
return -EPERM;
#endif
} }
static int set_pio_mode (ide_drive_t *drive, int arg) static int set_pio_mode (ide_drive_t *drive, int arg)
......
...@@ -150,6 +150,8 @@ static int ide_setup_pci_baseregs (struct pci_dev *dev, const char *name) ...@@ -150,6 +150,8 @@ static int ide_setup_pci_baseregs (struct pci_dev *dev, const char *name)
return 0; return 0;
} }
#ifdef CONFIG_BLK_DEV_IDEDMA_PCI
#ifdef CONFIG_BLK_DEV_IDEDMA_FORCED #ifdef CONFIG_BLK_DEV_IDEDMA_FORCED
/* /*
* Long lost data from 2.0.34 that is now in 2.0.39 * Long lost data from 2.0.34 that is now in 2.0.39
...@@ -279,6 +281,7 @@ static unsigned long ide_get_or_set_dma_base (ide_hwif_t *hwif) ...@@ -279,6 +281,7 @@ static unsigned long ide_get_or_set_dma_base (ide_hwif_t *hwif)
} }
return dma_base; return dma_base;
} }
#endif /* CONFIG_BLK_DEV_IDEDMA_PCI */
void ide_setup_pci_noise (struct pci_dev *dev, ide_pci_device_t *d) void ide_setup_pci_noise (struct pci_dev *dev, ide_pci_device_t *d)
{ {
......
...@@ -107,8 +107,6 @@ extern int platinumfb_init(void); ...@@ -107,8 +107,6 @@ extern int platinumfb_init(void);
extern int platinumfb_setup(char*); extern int platinumfb_setup(char*);
extern int control_init(void); extern int control_init(void);
extern int control_setup(char*); extern int control_setup(char*);
extern int platinum_init(void);
extern int platinum_setup(char*);
extern int valkyriefb_init(void); extern int valkyriefb_init(void);
extern int valkyriefb_setup(char*); extern int valkyriefb_setup(char*);
extern int chips_init(void); extern int chips_init(void);
......
...@@ -1626,6 +1626,9 @@ extern ide_startstop_t __ide_dma_queued_read(ide_drive_t *drive); ...@@ -1626,6 +1626,9 @@ extern ide_startstop_t __ide_dma_queued_read(ide_drive_t *drive);
extern ide_startstop_t __ide_dma_queued_write(ide_drive_t *drive); extern ide_startstop_t __ide_dma_queued_write(ide_drive_t *drive);
extern ide_startstop_t __ide_dma_queued_start(ide_drive_t *drive); extern ide_startstop_t __ide_dma_queued_start(ide_drive_t *drive);
#endif #endif
#else
static inline int __ide_dma_off(ide_drive_t *drive) { return 0; }
#endif /* CONFIG_BLK_DEV_IDEDMA */ #endif /* CONFIG_BLK_DEV_IDEDMA */
#ifndef CONFIG_BLK_DEV_IDEDMA_PCI #ifndef CONFIG_BLK_DEV_IDEDMA_PCI
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment