I developed Linux USB device driver for our sensor camera (IVS30 for factory 
automation.).

I successed configureing device driver with kernel as module.

I'm trying to configureing device driver with kernel. (not module)
But I can't.

1. /usr/src/linux-2.3.**/drivers/usb/Makefile added below
  .
  .
obj-$(CONFIG_USB_OV511)     +=  ov511.o
obj-$(CONFIG_USB_IVS30USB)  +=  ivs30usb.o      <-ADDED
obj-$(CONFIG_USB_PEGASUS)   +=  pegasus.o
  .
  .

2. /usr/src/linux-2.3.**/drivers/usb/Config.in added below
  .
  .
dep_tristate '  USB OV511 Camera support' CONFIG_USB_OV511  $CONFIG_USB
dep_tristate '  USB IVS30USB support' CONFIG_USB_IVS30USB  $CONFIG_USB         <-ADDED
dep_tristate '  USB Kodak DC-2xx Camera support' CONFIG_USB_DC2XX  $CONFIG_USB
  .
  .


3. My device driver file(ivs30usb.c) copy to /usr/src/linux-2.3.**/drivers/usb/

4. make mrproper
5. make xconfig     <select y, USB IVS30USB support>
6. make dep; make clean; make bzImage
7. these warning displaying.
   ivs30usb.c :494: warning: 'ivs30usb_init' defined but not used
   ivs30usb.c :505: warning: 'ivs30usb_exit' defined but not used

I think it's not configureing with kernel.
initialize and exit code is below. (I refered printer.c, scanner.c)

/***********************************************************************************/

/*---------------------------------------------------------------------------------*/
/* Module initialize */ 
static int __init ivs30usb_init(void) 
{
        /*printk("IVS30 USB drvice driver ready!!\n");*/
        if(usb_register(&ivs30usb_driver))
                return -1;

        return 0;
}

/*---------------------------------------------------------------------------------*/
/* Module remove */
static void __exit ivs30usb_exit(void)
{
        /*printk("IVS30 USB device driver removed!!\n");*/
        usb_deregister(&ivs30usb_driver);
}

module_init(ivs30usb_init);
module_exit(ivs30usb_exit);

/***********************************************************************************/

I don't know what I miss.

Please tell me, how to do it.



------------------------------------------
Kunio Fujiwara
THIRD ENGINEERING DEPARTMENT
SHARP MANUFACTURING SYSTEMS CORP.
  e-mail : [EMAIL PROTECTED]
 URL : http://www.sharp.co.jp/sms/
  PHONE :  +81-729-91-4218
  FAX :  +81-729-91-4075
------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to