From dc08ffec870569914f44bcf26aa838310e343764 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 21 Feb 2004 21:10:55 +0000 Subject: Device megapatch 4/6: Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags. --- sys/dev/mly/mly.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/mly') diff --git a/sys/dev/mly/mly.c b/sys/dev/mly/mly.c index 6dacf2778fd7c..5f4c1eca06bb8 100644 --- a/sys/dev/mly/mly.c +++ b/sys/dev/mly/mly.c @@ -149,8 +149,9 @@ static driver_t mly_pci_driver = { static devclass_t mly_devclass; DRIVER_MODULE(mly, pci, mly_pci_driver, mly_devclass, 0, 0); - static struct cdevsw mly_cdevsw = { + .d_version = D_VERSION, + .d_flags = D_NEEDGIANT, .d_open = mly_user_open, .d_close = mly_user_close, .d_ioctl = mly_user_ioctl, -- cgit v1.3