Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a8af6b3 authored by Andrew Morton's avatar Andrew Morton Committed by Greg Kroah-Hartman
Browse files

[PATCH] Floppy: add cmos attribute to floppy driver tidy



Fiddle with coding style a bit.

Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 94fd0db7
Loading
Loading
Loading
Loading
+7 −8
Original line number Original line Diff line number Diff line
@@ -4193,17 +4193,16 @@ static int __init floppy_setup(char *str)


static int have_no_fdc = -ENODEV;
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);
	struct platform_device *p;
	int drive = p->id;
	int drive;
	ssize_t retval;

	retval = sprintf(buf,"%X\n", UDP->cmos);


	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);
DEVICE_ATTR(cmos,S_IRUGO,floppy_cmos_show,NULL);


static void floppy_device_release(struct device *dev)
static void floppy_device_release(struct device *dev)