Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7209
b: refs/heads/master
c: 9a8af6b
h: refs/heads/master
i:
  7207: e037d67
v: v3
  • Loading branch information
Andrew Morton authored and Greg Kroah-Hartman committed Sep 5, 2005
1 parent dbfce2e commit b77fe1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 94fd0db7bfb4a03da202fd426d4e8e7eab42ab86
refs/heads/master: 9a8af6b3b64ee97a1aeecde017ffd02e6796913a
15 changes: 7 additions & 8 deletions trunk/drivers/block/floppy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b77fe1a

Please sign in to comment.