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


 208 
 209 /*
 210  * This is the loadable module wrapper.
 211  */
 212 #include <sys/modctl.h>
 213 
 214 extern struct mod_ops mod_driverops;
 215 
 216 /*
 217  * Module linkage information for the kernel.
 218  */
 219 
 220 static struct modldrv modldrv = {
 221         &mod_driverops, /* Type of module.  This one is a driver */
 222         "PS/2 Mouse",
 223         &mouse8042_ops,     /* driver ops */
 224 };
 225 
 226 static struct modlinkage modlinkage = {
 227         MODREV_1,
 228         (void *)&modldrv,
 229         NULL
 230 };
 231 
 232 /*
 233  * This is the driver initialization routine.
 234  */
 235 int
 236 _init()
 237 {
 238         int     rv;
 239 
 240         rv = mod_install(&modlinkage);
 241         return (rv);
 242 }
 243 
 244 
 245 int
 246 _fini(void)
 247 {
 248         return (mod_remove(&modlinkage));
 249 }




 208 
 209 /*
 210  * This is the loadable module wrapper.
 211  */
 212 #include <sys/modctl.h>
 213 
 214 extern struct mod_ops mod_driverops;
 215 
 216 /*
 217  * Module linkage information for the kernel.
 218  */
 219 
 220 static struct modldrv modldrv = {
 221         &mod_driverops, /* Type of module.  This one is a driver */
 222         "PS/2 Mouse",
 223         &mouse8042_ops,     /* driver ops */
 224 };
 225 
 226 static struct modlinkage modlinkage = {
 227         MODREV_1,
 228         { (void *)&modldrv, NULL }

 229 };
 230 
 231 /*
 232  * This is the driver initialization routine.
 233  */
 234 int
 235 _init()
 236 {
 237         int     rv;
 238 
 239         rv = mod_install(&modlinkage);
 240         return (rv);
 241 }
 242 
 243 
 244 int
 245 _fini(void)
 246 {
 247         return (mod_remove(&modlinkage));
 248 }