Skip to content

Commit afa153f

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6: ide/Kconfig: mark ide-scsi as deprecated ide-disk: remove stale init_idedisk_capacity() documentation palm_bk3710: improve IDE registration ide: fix hwif_to_node() IDE: palm_bk3710: fix compile warning for unused variable IDE: compile fix for sff_dma_ops
2 parents ba6271e + 5a61dd9 commit afa153f

4 files changed

Lines changed: 6 additions & 37 deletions

File tree

‎drivers/ide/Kconfig‎

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ config BLK_DEV_IDEFLOPPY
242242
module will be called ide-floppy.
243243

244244
config BLK_DEV_IDESCSI
245-
tristate "SCSI emulation support"
245+
tristate "SCSI emulation support (DEPRECATED)"
246246
depends on SCSI
247247
select IDE_ATAPI
248248
---help---
@@ -255,20 +255,6 @@ config BLK_DEV_IDESCSI
255255
and will allow you to use a SCSI device driver instead of a native
256256
ATAPI driver.
257257

258-
This is useful if you have an ATAPI device for which no native
259-
driver has been written (for example, an ATAPI PD-CD drive);
260-
you can then use this emulation together with an appropriate SCSI
261-
device driver. In order to do this, say Y here and to "SCSI support"
262-
and "SCSI generic support", below. You must then provide the kernel
263-
command line "hdx=ide-scsi" (try "man bootparam" or see the
264-
documentation of your boot loader (lilo or loadlin) about how to
265-
pass options to the kernel at boot time) for devices if you want the
266-
native EIDE sub-drivers to skip over the native support, so that
267-
this SCSI emulation can be used instead.
268-
269-
Note that this option does NOT allow you to attach SCSI devices to a
270-
box that doesn't have a SCSI host adapter installed.
271-
272258
If both this SCSI emulation and native ATAPI support are compiled
273259
into the kernel, the native support will be used.
274260

‎drivers/ide/arm/palm_bk3710.c‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,10 @@ static struct ide_port_info __devinitdata palm_bk3710_port_info = {
343343
.mwdma_mask = ATA_MWDMA2,
344344
};
345345

346-
static int __devinit palm_bk3710_probe(struct platform_device *pdev)
346+
static int __init palm_bk3710_probe(struct platform_device *pdev)
347347
{
348348
struct clk *clk;
349349
struct resource *mem, *irq;
350-
struct ide_host *host;
351350
unsigned long base, rate;
352351
int i, rc;
353352
hw_regs_t hw, *hws[] = { &hw, NULL, NULL, NULL };
@@ -390,6 +389,7 @@ static int __devinit palm_bk3710_probe(struct platform_device *pdev)
390389
hw.io_ports_array[i] = base + IDE_PALM_ATA_PRI_REG_OFFSET + i;
391390
hw.io_ports.ctl_addr = base + IDE_PALM_ATA_PRI_CTL_OFFSET;
392391
hw.irq = irq->start;
392+
hw.dev = &pdev->dev;
393393
hw.chipset = ide_palm3710;
394394

395395
palm_bk3710_port_info.udma_mask = rate < 100000000 ? ATA_UDMA4 :
@@ -413,13 +413,11 @@ static struct platform_driver platform_bk_driver = {
413413
.name = "palm_bk3710",
414414
.owner = THIS_MODULE,
415415
},
416-
.probe = palm_bk3710_probe,
417-
.remove = NULL,
418416
};
419417

420418
static int __init palm_bk3710_init(void)
421419
{
422-
return platform_driver_register(&platform_bk_driver);
420+
return platform_driver_probe(&platform_bk_driver, palm_bk3710_probe);
423421
}
424422

425423
module_init(palm_bk3710_init);

‎drivers/ide/ide-disk.c‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -445,20 +445,6 @@ static void idedisk_check_hpa(ide_drive_t *drive)
445445
}
446446
}
447447

448-
/*
449-
* Compute drive->capacity, the full capacity of the drive
450-
* Called with drive->id != NULL.
451-
*
452-
* To compute capacity, this uses either of
453-
*
454-
* 1. CHS value set by user (whatever user sets will be trusted)
455-
* 2. LBA value from target drive (require new ATA feature)
456-
* 3. LBA value from system BIOS (new one is OK, old one may break)
457-
* 4. CHS value from system BIOS (traditional style)
458-
*
459-
* in above order (i.e., if value of higher priority is available,
460-
* reset will be ignored).
461-
*/
462448
static void init_idedisk_capacity(ide_drive_t *drive)
463449
{
464450
struct hd_driveid *id = drive->id;

‎include/linux/ide.h‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,6 @@ void ide_setup_pci_noise(struct pci_dev *, const struct ide_port_info *);
11111111
#ifdef CONFIG_BLK_DEV_IDEDMA_PCI
11121112
int ide_pci_set_master(struct pci_dev *, const char *);
11131113
unsigned long ide_pci_dma_base(ide_hwif_t *, const struct ide_port_info *);
1114-
extern const struct ide_dma_ops sff_dma_ops;
11151114
int ide_pci_check_simplex(ide_hwif_t *, const struct ide_port_info *);
11161115
int ide_hwif_setup_dma(ide_hwif_t *, const struct ide_port_info *);
11171116
#else
@@ -1275,6 +1274,7 @@ extern int __ide_dma_end(ide_drive_t *);
12751274
int ide_dma_test_irq(ide_drive_t *);
12761275
extern void ide_dma_lost_irq(ide_drive_t *);
12771276
extern void ide_dma_timeout(ide_drive_t *);
1277+
extern const struct ide_dma_ops sff_dma_ops;
12781278
#endif /* CONFIG_BLK_DEV_IDEDMA_SFF */
12791279

12801280
#else
@@ -1448,8 +1448,7 @@ static inline void ide_dump_identify(u8 *id)
14481448

14491449
static inline int hwif_to_node(ide_hwif_t *hwif)
14501450
{
1451-
struct pci_dev *dev = to_pci_dev(hwif->dev);
1452-
return hwif->dev ? pcibus_to_node(dev->bus) : -1;
1451+
return hwif->dev ? dev_to_node(hwif->dev) : -1;
14531452
}
14541453

14551454
static inline ide_drive_t *ide_get_paired_drive(ide_drive_t *drive)

0 commit comments

Comments
 (0)