aboutsummaryrefslogtreecommitdiff
path: root/stand/uboot/uboot_disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'stand/uboot/uboot_disk.c')
-rw-r--r--stand/uboot/uboot_disk.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/stand/uboot/uboot_disk.c b/stand/uboot/uboot_disk.c
index 70dcfdcc8863..4f7b6ba06942 100644
--- a/stand/uboot/uboot_disk.c
+++ b/stand/uboot/uboot_disk.c
@@ -31,9 +31,6 @@
* Block storage I/O routines for U-Boot
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include <sys/param.h>
#include <sys/disk.h>
#include <machine/stdarg.h>
@@ -81,15 +78,17 @@ static int stor_print(int);
static void stor_cleanup(void);
struct devsw uboot_storage = {
- "disk",
- DEVT_DISK,
- stor_init,
- stor_strategy,
- stor_open,
- stor_close,
- stor_ioctl,
- stor_print,
- stor_cleanup
+ .dv_name = "disk",
+ .dv_type = DEVT_DISK,
+ .dv_init = stor_init,
+ .dv_strategy = stor_strategy,
+ .dv_open = stor_open,
+ .dv_close = stor_close,
+ .dv_ioctl = stor_ioctl,
+ .dv_print = stor_print,
+ .dv_cleanup = stor_cleanup,
+ .dv_fmtdev = disk_fmtdev,
+ .dv_parsedev = disk_parsedev,
};
static int