summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-09-10 10:26:17 +0000
committerMichael Hunold <devnull@localhost>2003-09-10 10:26:17 +0000
commit83dd624930fecb0790451f79f90e4471772acc69 (patch)
tree41b6c7379753e3681b6c6fbe8e4bfe1b52c1808a
parent7db1035a235185fab1feaec9a5e825013726fa21 (diff)
downloadmediapointer-dvb-s2-83dd624930fecb0790451f79f90e4471772acc69.tar.gz
mediapointer-dvb-s2-83dd624930fecb0790451f79f90e4471772acc69.tar.bz2
- add missing #include for usb header file
- give back real error code instead of -1 in module init
-rw-r--r--linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
index 0413d0e69..5d2df02a6 100644
--- a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
+++ b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
@@ -27,6 +27,7 @@
#include <linux/dvb/frontend.h>
#include <linux/dvb/dmx.h>
#include <linux/pci.h>
+#include <linux/usb.h>
#include "dvb_usb_compat.h"
#include "dvb_functions.h"
@@ -1249,7 +1250,7 @@ static int __init ttusb_init(void)
if ((err = usb_register(&ttusb_driver)) < 0) {
printk("%s: usb_register failed! Error number %d",
__FILE__, err);
- return -1;
+ return err;
}
return 0;