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


 142         acpinex_info,                   /* devo_getinfo */
 143         nulldev,                        /* devo_identify */
 144         nulldev,                        /* devo_probe */
 145         acpinex_attach,                 /* devo_attach */
 146         acpinex_detach,                 /* devo_detach */
 147         nulldev,                        /* devo_reset */
 148         &acpinex_cb_ops,            /* devo_cb_ops */
 149         &acpinex_bus_ops,           /* devo_bus_ops */
 150         nulldev,                        /* devo_power */
 151         ddi_quiesce_not_needed          /* devo_quiesce */
 152 };
 153 
 154 static struct modldrv modldrv = {
 155         &mod_driverops,                     /* Type of module */
 156         "ACPI virtual bus driver",      /* name of module */
 157         &acpinex_ops,                       /* driver ops */
 158 };
 159 
 160 static struct modlinkage modlinkage = {
 161         MODREV_1,                       /* rev */
 162         (void *)&modldrv,
 163         NULL
 164 };
 165 
 166 /*
 167  * Module initialization routines.
 168  */
 169 int
 170 _init(void)
 171 {
 172         int error;
 173 
 174         /* Initialize soft state pointer. */
 175         if ((error = ddi_soft_state_init(&acpinex_softstates,
 176             sizeof (acpinex_softstate_t), 8)) != 0) {
 177                 cmn_err(CE_WARN,
 178                     "acpinex: failed to initialize soft state structure.");
 179                 return (error);
 180         }
 181 
 182         /* Initialize event subsystem. */
 183         acpinex_event_init();




 142         acpinex_info,                   /* devo_getinfo */
 143         nulldev,                        /* devo_identify */
 144         nulldev,                        /* devo_probe */
 145         acpinex_attach,                 /* devo_attach */
 146         acpinex_detach,                 /* devo_detach */
 147         nulldev,                        /* devo_reset */
 148         &acpinex_cb_ops,            /* devo_cb_ops */
 149         &acpinex_bus_ops,           /* devo_bus_ops */
 150         nulldev,                        /* devo_power */
 151         ddi_quiesce_not_needed          /* devo_quiesce */
 152 };
 153 
 154 static struct modldrv modldrv = {
 155         &mod_driverops,                     /* Type of module */
 156         "ACPI virtual bus driver",      /* name of module */
 157         &acpinex_ops,                       /* driver ops */
 158 };
 159 
 160 static struct modlinkage modlinkage = {
 161         MODREV_1,                       /* rev */
 162         { (void *)&modldrv, NULL }

 163 };
 164 
 165 /*
 166  * Module initialization routines.
 167  */
 168 int
 169 _init(void)
 170 {
 171         int error;
 172 
 173         /* Initialize soft state pointer. */
 174         if ((error = ddi_soft_state_init(&acpinex_softstates,
 175             sizeof (acpinex_softstate_t), 8)) != 0) {
 176                 cmn_err(CE_WARN,
 177                     "acpinex: failed to initialize soft state structure.");
 178                 return (error);
 179         }
 180 
 181         /* Initialize event subsystem. */
 182         acpinex_event_init();