Commit:     9a24b63db06a4b9389367ebafd9b0cfb5dd1b39f
Parent:     0078df2ece5a752e878410e39eb31e075183b4e7
Author:     Borislav Petkov <[EMAIL PROTECTED]>
AuthorDate: Sat Feb 2 19:56:33 2008 +0100
Committer:  Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
CommitDate: Sat Feb 2 19:56:33 2008 +0100

    ide-floppy: disambiguate function names
    There were two almost identical function names in ide-floppy.c, which makes
    their distinction almost impossible. While ide_floppy_release() cleans up 
    object after the last reference to it has been dropped, idefloppy_release() 
    the blkdev .release method from struct block_device_operations which 
    that last reference.
    Rename ide_floppy_release() to idefloppy_cleanup_obj() in order to make its
    purpose more clear.
    There should be no functionality change resulting from this patch.
    Signed-off-by: Borislav Petkov <[EMAIL PROTECTED]>
    Signed-off-by: Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]>
 drivers/ide/ide-floppy.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c
index 66dfd18..771bfaf 100644
--- a/drivers/ide/ide-floppy.c
+++ b/drivers/ide/ide-floppy.c
@@ -438,12 +438,12 @@ static struct ide_floppy_obj *ide_floppy_get(struct 
gendisk *disk)
        return floppy;
-static void ide_floppy_release(struct kref *);
+static void idefloppy_cleanup_obj(struct kref *);
 static void ide_floppy_put(struct ide_floppy_obj *floppy)
-       kref_put(&floppy->kref, ide_floppy_release);
+       kref_put(&floppy->kref, idefloppy_cleanup_obj);
@@ -1713,7 +1713,7 @@ static void ide_floppy_remove(ide_drive_t *drive)
-static void ide_floppy_release(struct kref *kref)
+static void idefloppy_cleanup_obj(struct kref *kref)
        struct ide_floppy_obj *floppy = to_ide_floppy(kref);
        ide_drive_t *drive = floppy->drive;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to