Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f5dbd9a0
Commit
f5dbd9a0
authored
Jul 23, 2002
by
Petko Manolov
Committed by
Greg Kroah-Hartman
Jul 23, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: rtl8150 updated
new vendor/device ID; redundant check removed from probe();
parent
a7e9ed60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
drivers/usb/net/rtl8150.c
drivers/usb/net/rtl8150.c
+5
-6
No files found.
drivers/usb/net/rtl8150.c
View file @
f5dbd9a0
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include <asm/uaccess.h>
#include <asm/uaccess.h>
/* Version Information */
/* Version Information */
#define DRIVER_VERSION "v0.5.
4 (2002/04/11
)"
#define DRIVER_VERSION "v0.5.
5 (2002/07/22
)"
#define DRIVER_AUTHOR "Petko Manolov <petkan@users.sourceforge.net>"
#define DRIVER_AUTHOR "Petko Manolov <petkan@users.sourceforge.net>"
#define DRIVER_DESC "rtl8150 based usb-ethernet driver"
#define DRIVER_DESC "rtl8150 based usb-ethernet driver"
...
@@ -68,11 +68,15 @@
...
@@ -68,11 +68,15 @@
/* Define these values to match your device */
/* Define these values to match your device */
#define VENDOR_ID_REALTEK 0x0bda
#define VENDOR_ID_REALTEK 0x0bda
#define VENDOR_ID_MELCO 0x0411
#define PRODUCT_ID_RTL8150 0x8150
#define PRODUCT_ID_RTL8150 0x8150
#define PRODUCT_ID_LUAKTX 0x0012
/* table of devices that work with this driver */
/* table of devices that work with this driver */
static
struct
usb_device_id
rtl8150_table
[]
=
{
static
struct
usb_device_id
rtl8150_table
[]
=
{
{
USB_DEVICE
(
VENDOR_ID_REALTEK
,
PRODUCT_ID_RTL8150
)},
{
USB_DEVICE
(
VENDOR_ID_REALTEK
,
PRODUCT_ID_RTL8150
)},
{
USB_DEVICE
(
VENDOR_ID_MELCO
,
PRODUCT_ID_LUAKTX
)},
{}
{}
};
};
...
@@ -729,11 +733,6 @@ static void *rtl8150_probe(struct usb_device *udev, unsigned int ifnum,
...
@@ -729,11 +733,6 @@ static void *rtl8150_probe(struct usb_device *udev, unsigned int ifnum,
err
(
"usb_set_configuration() failed"
);
err
(
"usb_set_configuration() failed"
);
return
NULL
;
return
NULL
;
}
}
if
((
udev
->
descriptor
.
idVendor
!=
VENDOR_ID_REALTEK
)
||
(
udev
->
descriptor
.
idProduct
!=
PRODUCT_ID_RTL8150
))
{
err
(
"Not the one we are interested about"
);
return
NULL
;
}
dev
=
kmalloc
(
sizeof
(
rtl8150_t
),
GFP_KERNEL
);
dev
=
kmalloc
(
sizeof
(
rtl8150_t
),
GFP_KERNEL
);
if
(
!
dev
)
{
if
(
!
dev
)
{
err
(
"Out of memory"
);
err
(
"Out of memory"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment