Re: [PATCH 3/4] ide-pmac: add ->init_dev method (take 2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Bart,

On Mon, 16 Jun 2008 21:24:47 +0200 Bartlomiej Zolnierkiewicz <bzolnier@xxxxxxxxx> wrote:
>
> +static void pmac_ide_init_dev(ide_drive_t *drive)
> +{
> +	ide_hwif_t *hwif = drive->hwif;
> +	pmac_ide_hwif_t *pmif =
> +		(pmac_ide_hwif_t *)dev_get_drvdata(hwif->gendev.parent);
> +
> +	if (pmif->mediabay) {
> +#ifdef CONFIG_PMAC_MEDIABAY
> +		if (check_media_bay(np->parent, MB_CD) == -ENODEV)
                                    ^^
"np" doesn't exist here.

-- 
Cheers,
Stephen Rothwell                    sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/

Attachment: pgpweiaM42iZV.pgp
Description: PGP signature


[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux