stand: Use c99 structure initialization for uboot block device

Use c99 structure init for devsw.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-07-24 15:51:24 -06:00
parent e72a01f132
commit 1e3d1c86bc

View File

@ -81,15 +81,15 @@ static int stor_print(int);
static void stor_cleanup(void); static void stor_cleanup(void);
struct devsw uboot_storage = { struct devsw uboot_storage = {
"disk", .dv_name = "disk",
DEVT_DISK, .dv_type = DEVT_DISK,
stor_init, .dv_init = stor_init,
stor_strategy, .dv_strategy = stor_strategy,
stor_open, .dv_open = stor_open,
stor_close, .dv_close = stor_close,
stor_ioctl, .dv_ioctl = stor_ioctl,
stor_print, .dv_print = stor_print,
stor_cleanup .dv_cleanup = stor_cleanup,
}; };
static int static int