Author: mcayland Date: Sun Aug 1 00:46:48 2010 New Revision: 824 URL: http://tracker.coreboot.org/trac/openbios/changeset/824
Log: For some reason, the floppy alias is never registered in /aliases - let's make it happen.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@siriusit.co.uk
Modified: trunk/openbios-devel/drivers/floppy.c
Modified: trunk/openbios-devel/drivers/floppy.c ============================================================================== --- trunk/openbios-devel/drivers/floppy.c Sun Aug 1 00:46:00 2010 (r823) +++ trunk/openbios-devel/drivers/floppy.c Sun Aug 1 00:46:48 2010 (r824) @@ -1153,6 +1153,7 @@ unsigned long io_base, unsigned long mmio_base) { char nodebuff[128]; + phandle_t aliases;
snprintf(nodebuff, sizeof(nodebuff), "%s/%s", path, dev_name); if (!mmio_base) { @@ -1163,5 +1164,9 @@ REGISTER_NODE_METHODS(ob_floppy, nodebuff); } floppy_init(io_base, mmio_base); + + aliases = find_dev("/aliases"); + set_property(aliases, "floppy", nodebuff, strlen(nodebuff) + 1); + return 0; }