Print this page
fixup .text where possible
7127  remove -Wno-missing-braces from Makefile.uts


 121         nulldev,                /* probe                        */
 122         dcam_attach,            /* attach                       */
 123         dcam_detach,            /* detach                       */
 124         nodev,                  /* reset                        */
 125         &dcam_cb_ops,               /* ptr to cb_ops struct         */
 126         NULL,                   /* ptr to bus_ops struct; none  */
 127         dcam_power,             /* power                        */
 128         ddi_quiesce_not_supported,      /* devo_quiesce */
 129 };
 130 
 131 extern  struct  mod_ops mod_driverops;
 132 
 133 static  struct modldrv modldrv = {
 134         &mod_driverops,
 135         "SUNW 1394-based Digital Camera driver",
 136         &dcam_dev_ops,
 137 };
 138 
 139 static  struct modlinkage modlinkage = {
 140         MODREV_1,
 141         (void *)&modldrv,
 142         NULL,
 143 };
 144 
 145 
 146 int
 147 _init(void)
 148 {
 149         int err;
 150 
 151         err = ddi_soft_state_init(&dcam_state_p, sizeof (dcam_state_t), 2);
 152 
 153         if (err) {
 154                 return (err);
 155         }
 156 
 157 #ifndef NPROBE
 158         (void) tnf_mod_load();
 159 #endif /* ! NPROBE */
 160 
 161         if (err = mod_install(&modlinkage)) {
 162 




 121         nulldev,                /* probe                        */
 122         dcam_attach,            /* attach                       */
 123         dcam_detach,            /* detach                       */
 124         nodev,                  /* reset                        */
 125         &dcam_cb_ops,               /* ptr to cb_ops struct         */
 126         NULL,                   /* ptr to bus_ops struct; none  */
 127         dcam_power,             /* power                        */
 128         ddi_quiesce_not_supported,      /* devo_quiesce */
 129 };
 130 
 131 extern  struct  mod_ops mod_driverops;
 132 
 133 static  struct modldrv modldrv = {
 134         &mod_driverops,
 135         "SUNW 1394-based Digital Camera driver",
 136         &dcam_dev_ops,
 137 };
 138 
 139 static  struct modlinkage modlinkage = {
 140         MODREV_1,
 141         {   (void *)&modldrv,
 142             NULL }
 143 };
 144 
 145 
 146 int
 147 _init(void)
 148 {
 149         int err;
 150 
 151         err = ddi_soft_state_init(&dcam_state_p, sizeof (dcam_state_t), 2);
 152 
 153         if (err) {
 154                 return (err);
 155         }
 156 
 157 #ifndef NPROBE
 158         (void) tnf_mod_load();
 159 #endif /* ! NPROBE */
 160 
 161         if (err = mod_install(&modlinkage)) {
 162