27 Mar, 2009

2 commits


26 Feb, 2009

1 commit

  • During host driver module removal del_gendisk() results in a final
    put on drive->gendev and freeing the drive by drive_release_dev().

    Convert device drivers from using struct kref to use struct device
    so device driver's object holds reference on ->gendev and prevents
    drive from prematurely going away.

    Also fix ->remove methods to not erroneously drop reference on a
    host driver by using only put_device() instead of ide*_put().

    Reported-by: Stanislaw Gruszka
    Tested-by: Stanislaw Gruszka
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     

07 Jan, 2009

1 commit


18 Oct, 2008

1 commit

  • * Add struct ide_disk_ops containing protocol specific methods.

    * Add 'struct ide_disk_ops *' to ide_drive_t.

    * Convert ide-{disk,floppy} drivers to use struct ide_disk_ops.

    * Merge ide-{disk,floppy} drivers into generic ide-gd driver.

    While at it:
    - ide_disk_init_capacity() -> ide_disk_get_capacity()

    Acked-by: Borislav Petkov
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz