[PATCH] Floppy: Add cmos attribute to floppy driver
authorHannes Reinecke <hare@suse.de>
Fri, 15 Jul 2005 08:09:25 +0000 (10:09 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Sep 2005 23:03:10 +0000 (16:03 -0700)
commit94fd0db7bfb4a03da202fd426d4e8e7eab42ab86
tree3b440ad6560e832f2b91629e6af7fa9b602f75c0
parent76d1ce00bdd76c2987fbfb763cd40447413a55b3
[PATCH] Floppy: Add cmos attribute to floppy driver

Currently only a device 'fdX' shows up in sysfs; the other possible
device for this drive (like fd0h1440 etc) must be guessed from there.

This patch corrects the floppy driver to create a platform device for
each floppy found; each platform device also has an attribute 'cmos'
which represents the cmos type for this drive. From this attribute the
other possible device types can be computed.

From: Hannes Reinecke <hare@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/block/floppy.c