git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
drivers
/
isdn
/
hisax
/
st5481_init.c
diff --git
a/drivers/isdn/hisax/st5481_init.c
b/drivers/isdn/hisax/st5481_init.c
index
92676bd
..
7aa810d
100644
(file)
--- a/
drivers/isdn/hisax/st5481_init.c
+++ b/
drivers/isdn/hisax/st5481_init.c
@@
-37,14
+37,14
@@
MODULE_AUTHOR("Frode Isaksen");
MODULE_LICENSE("GPL");
static int protocol = 2; /* EURO-ISDN Default */
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 */
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;
#ifdef CONFIG_HISAX_DEBUG
static int debug = 0x1;
-
MODULE_PARM(debug, "i"
);
+
module_param(debug, int, 0
);
int st5481_debug;
#endif
int st5481_debug;
#endif
@@
-67,7
+67,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",
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);
number_of_leds);
adapter = kmalloc(sizeof(struct st5481_adapter), GFP_KERNEL);