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


  28  * Dummy module to load usba module on behalf of legacy drivers.
  29  *
  30  * Please see the on81-patch gate usr/src/uts/common/sys/usba10/usba10_usbai.h
  31  * header file for descriptions and comments for these functions.
  32  */
  33 
  34 #include <sys/usb/usba.h>
  35 #include <sys/usb/usba/usbai_private.h>
  36 #include <sys/usb/usba/usba10.h>
  37 
  38 /*
  39  * modload support
  40  */
  41 
  42 static struct modlmisc modlmisc = {
  43         &mod_miscops,       /* Type of module */
  44         "USBA10: USB V0.8 Drvr Supp"
  45 };
  46 
  47 static struct modlinkage modlinkage = {
  48         MODREV_1, (void *)&modlmisc, NULL
  49 };
  50 
  51 
  52 int
  53 _init(void)
  54 {
  55         return (mod_install(&modlinkage));
  56 }
  57 
  58 int
  59 _fini()
  60 {
  61         return (mod_remove(&modlinkage));
  62 }
  63 
  64 int
  65 _info(struct modinfo *modinfop)
  66 {
  67         return (mod_info(&modlinkage, modinfop));
  68 }




  28  * Dummy module to load usba module on behalf of legacy drivers.
  29  *
  30  * Please see the on81-patch gate usr/src/uts/common/sys/usba10/usba10_usbai.h
  31  * header file for descriptions and comments for these functions.
  32  */
  33 
  34 #include <sys/usb/usba.h>
  35 #include <sys/usb/usba/usbai_private.h>
  36 #include <sys/usb/usba/usba10.h>
  37 
  38 /*
  39  * modload support
  40  */
  41 
  42 static struct modlmisc modlmisc = {
  43         &mod_miscops,       /* Type of module */
  44         "USBA10: USB V0.8 Drvr Supp"
  45 };
  46 
  47 static struct modlinkage modlinkage = {
  48         MODREV_1, { (void *)&modlmisc, NULL }
  49 };
  50 
  51 
  52 int
  53 _init(void)
  54 {
  55         return (mod_install(&modlinkage));
  56 }
  57 
  58 int
  59 _fini()
  60 {
  61         return (mod_remove(&modlinkage));
  62 }
  63 
  64 int
  65 _info(struct modinfo *modinfop)
  66 {
  67         return (mod_info(&modlinkage, modinfop));
  68 }