Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / drivers / isdn / hisax / st5481_init.c
index 92676bd..99cb0f3 100644 (file)
@@ -25,7 +25,6 @@
  */
 
 #include <linux/config.h>
-#include <linux/version.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/usb.h>
@@ -37,16 +36,16 @@ MODULE_AUTHOR("Frode Isaksen");
 MODULE_LICENSE("GPL");
 
 static int protocol = 2;       /* EURO-ISDN Default */
-MODULE_PARM(protocol, "i");
+module_param(protocol, int, 0);
 
 static int number_of_leds = 2;       /* 2 LEDs on the adpater default */
-MODULE_PARM(number_of_leds, "i");
+module_param(number_of_leds, int, 0);
 
 #ifdef CONFIG_HISAX_DEBUG
-static int debug = 0x1;
-MODULE_PARM(debug, "i");
-int st5481_debug;
+static int debug = 0;
+module_param(debug, int, 0);
 #endif
+int st5481_debug;
 
 static LIST_HEAD(adapter_list);
 
@@ -67,7 +66,8 @@ static int probe_st5481(struct usb_interface *intf,
        int retval, i;
 
        printk(KERN_INFO "st541: found adapter VendorId %04x, ProductId %04x, LEDs %d\n",
-            dev->descriptor.idVendor, dev->descriptor.idProduct,
+            le16_to_cpu(dev->descriptor.idVendor),
+            le16_to_cpu(dev->descriptor.idProduct),
             number_of_leds);
 
        adapter = kmalloc(sizeof(struct st5481_adapter), GFP_KERNEL);
@@ -180,7 +180,6 @@ static struct usb_device_id st5481_ids[] = {
 MODULE_DEVICE_TABLE (usb, st5481_ids);
 
 static struct usb_driver st5481_usb_driver = {
-       .owner =        THIS_MODULE,
        .name =         "st5481_usb",
        .probe =        probe_st5481,
        .disconnect =   disconnect_st5481,