stand: Use c99 structure initialization for ofw's block device
Use c99 structure init for devsw. Sponsored by: Netflix
This commit is contained in:
parent
fc5d0d51aa
commit
e72a01f132
@ -51,14 +51,14 @@ static int ofwd_ioctl(struct open_file *f, u_long cmd, void *data);
|
|||||||
static int ofwd_print(int verbose);
|
static int ofwd_print(int verbose);
|
||||||
|
|
||||||
struct devsw ofwdisk = {
|
struct devsw ofwdisk = {
|
||||||
"block",
|
.dv_name = "block",
|
||||||
DEVT_DISK,
|
.dv_type = DEVT_DISK,
|
||||||
ofwd_init,
|
.dv_init = ofwd_init,
|
||||||
ofwd_strategy,
|
.dv_strategy = ofwd_strategy,
|
||||||
ofwd_open,
|
.dv_open = ofwd_open,
|
||||||
ofwd_close,
|
.dv_close = ofwd_close,
|
||||||
ofwd_ioctl,
|
.dv_ioctl = ofwd_ioctl,
|
||||||
ofwd_print
|
.dv_print = ofwd_print,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user