Print this page
7127  remove -Wno-missing-braces from Makefile.uts


 287         ucode_getinfo,
 288         nulldev,                /* identify */
 289         nulldev,                /* probe */
 290         ucode_attach,
 291         ucode_detach,
 292         nodev,                  /* reset */
 293         &ucode_cb_ops,
 294         (struct bus_ops *)0,
 295         NULL,                   /* power */
 296         ddi_quiesce_not_needed,         /* quiesce */
 297 };
 298 
 299 static struct modldrv modldrv = {
 300         &mod_driverops,
 301         "ucode driver",
 302         &ucode_dv_ops
 303 };
 304 
 305 static struct modlinkage modl = {
 306         MODREV_1,
 307         &modldrv
 308 };
 309 
 310 int
 311 _init(void)
 312 {
 313         int rc;
 314 
 315         if ((rc = mod_install(&modl)) != 0)
 316                 return (rc);
 317 
 318         mutex_init(&ucode_update_lock, NULL, MUTEX_DRIVER, NULL);
 319 
 320         return (0);
 321 }
 322 
 323 int
 324 _fini(void)
 325 {
 326         int rc;
 327 


 287         ucode_getinfo,
 288         nulldev,                /* identify */
 289         nulldev,                /* probe */
 290         ucode_attach,
 291         ucode_detach,
 292         nodev,                  /* reset */
 293         &ucode_cb_ops,
 294         (struct bus_ops *)0,
 295         NULL,                   /* power */
 296         ddi_quiesce_not_needed,         /* quiesce */
 297 };
 298 
 299 static struct modldrv modldrv = {
 300         &mod_driverops,
 301         "ucode driver",
 302         &ucode_dv_ops
 303 };
 304 
 305 static struct modlinkage modl = {
 306         MODREV_1,
 307         { &modldrv, NULL }
 308 };
 309 
 310 int
 311 _init(void)
 312 {
 313         int rc;
 314 
 315         if ((rc = mod_install(&modl)) != 0)
 316                 return (rc);
 317 
 318         mutex_init(&ucode_update_lock, NULL, MUTEX_DRIVER, NULL);
 319 
 320         return (0);
 321 }
 322 
 323 int
 324 _fini(void)
 325 {
 326         int rc;
 327