diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/floppy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 83d8ed39433d..c2c95e614506 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c | |||
@@ -4135,10 +4135,9 @@ static int have_no_fdc = -ENODEV; | |||
4135 | static ssize_t floppy_cmos_show(struct device *dev, | 4135 | static ssize_t floppy_cmos_show(struct device *dev, |
4136 | struct device_attribute *attr, char *buf) | 4136 | struct device_attribute *attr, char *buf) |
4137 | { | 4137 | { |
4138 | struct platform_device *p; | 4138 | struct platform_device *p = to_platform_device(dev); |
4139 | int drive; | 4139 | int drive; |
4140 | 4140 | ||
4141 | p = container_of(dev, struct platform_device,dev); | ||
4142 | drive = p->id; | 4141 | drive = p->id; |
4143 | return sprintf(buf, "%X\n", UDP->cmos); | 4142 | return sprintf(buf, "%X\n", UDP->cmos); |
4144 | } | 4143 | } |