]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/block/floppy.c
[PATCH] blk: fix merge bug in as-iosched
[mv-sheeva.git] / drivers / block / floppy.c
index 21f58c4b3c79c237c1c1e9d23fbca5a8cc9d6b74..00895477155e69aaac17792f253681d0e4c0a2d0 100644 (file)
@@ -628,7 +628,7 @@ static inline void debugt(const char *message) { }
 #endif /* DEBUGT */
 
 typedef void (*timeout_fn) (unsigned long);
-static struct timer_list fd_timeout = TIMER_INITIALIZER(floppy_shutdown, 0, 0);
+static DEFINE_TIMER(fd_timeout, floppy_shutdown, 0, 0);
 
 static const char *timeout_message;
 
@@ -1012,7 +1012,7 @@ static void schedule_bh(void (*handler) (void))
        schedule_work(&floppy_work);
 }
 
-static struct timer_list fd_timer = TIMER_INITIALIZER(NULL, 0, 0);
+static DEFINE_TIMER(fd_timer, NULL, 0, 0);
 
 static void cancel_activity(void)
 {
@@ -4193,17 +4193,16 @@ static int __init floppy_setup(char *str)
 
 static int have_no_fdc = -ENODEV;
 
-static ssize_t floppy_cmos_show(struct device *dev, struct device_attribute *attr, char *buf)
+static ssize_t floppy_cmos_show(struct device *dev,
+                               struct device_attribute *attr, char *buf)
 {
-       struct platform_device *p = container_of(dev,struct platform_device,dev);
-       int drive = p->id;
-       ssize_t retval;
-
-       retval = sprintf(buf,"%X\n", UDP->cmos);
+       struct platform_device *p;
+       int drive;
 
-       return retval;
+       p = container_of(dev, struct platform_device,dev);
+       drive = p->id;
+       return sprintf(buf, "%X\n", UDP->cmos);
 }
-
 DEVICE_ATTR(cmos,S_IRUGO,floppy_cmos_show,NULL);
 
 static void floppy_device_release(struct device *dev)