aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-floppy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-floppy.c')
-rw-r--r--drivers/ide/ide-floppy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c
index 66dfd1811101..771bfaff93b3 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)
438 return floppy; 438 return floppy;
439} 439}
440 440
441static void ide_floppy_release(struct kref *); 441static void idefloppy_cleanup_obj(struct kref *);
442 442
443static void ide_floppy_put(struct ide_floppy_obj *floppy) 443static void ide_floppy_put(struct ide_floppy_obj *floppy)
444{ 444{
445 mutex_lock(&idefloppy_ref_mutex); 445 mutex_lock(&idefloppy_ref_mutex);
446 kref_put(&floppy->kref, ide_floppy_release); 446 kref_put(&floppy->kref, idefloppy_cleanup_obj);
447 mutex_unlock(&idefloppy_ref_mutex); 447 mutex_unlock(&idefloppy_ref_mutex);
448} 448}
449 449
@@ -1713,7 +1713,7 @@ static void ide_floppy_remove(ide_drive_t *drive)
1713 ide_floppy_put(floppy); 1713 ide_floppy_put(floppy);
1714} 1714}
1715 1715
1716static void ide_floppy_release(struct kref *kref) 1716static void idefloppy_cleanup_obj(struct kref *kref)
1717{ 1717{
1718 struct ide_floppy_obj *floppy = to_ide_floppy(kref); 1718 struct ide_floppy_obj *floppy = to_ide_floppy(kref);
1719 ide_drive_t *drive = floppy->drive; 1719 ide_drive_t *drive = floppy->drive;