diff options
author | Mike Isely <isely@pobox.com> | 2007-11-25 23:55:07 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:03:02 -0500 |
commit | f66fbd71f24f5f0264bb8526cfb91ea5c6219f50 (patch) | |
tree | 9c251da04bfb2d8bed3fd508f143859abdf50038 /drivers | |
parent | f8bcec6d1814862e299e2a32ff9dbb0be0ff6ceb (diff) |
V4L/DVB (6694): pvrusb2: Remove obsolete global hardware type enumeration
Device-specific driver behavior is now defined by generic device
characteristics rather than by specific device model information.
With this change, the hardware type field can go away, thus this
change.
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | 4 | ||||
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw.c | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h b/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h index 8c2d222960f1..894c630c95c0 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h | |||
@@ -174,8 +174,8 @@ struct pvr2_hdw { | |||
174 | struct usb_device *usb_dev; | 174 | struct usb_device *usb_dev; |
175 | struct usb_interface *usb_intf; | 175 | struct usb_interface *usb_intf; |
176 | 176 | ||
177 | /* Device type, one of PVR2_HDW_TYPE_xxxxx */ | 177 | /* Device description, anything that must adjust behavior based on |
178 | unsigned int hdw_type; | 178 | device specific info will use information held here. */ |
179 | const struct pvr2_device_desc *hdw_desc; | 179 | const struct pvr2_device_desc *hdw_desc; |
180 | 180 | ||
181 | /* Kernel worker thread handling */ | 181 | /* Kernel worker thread handling */ |
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c index c56208456bc0..c08162cc20ae 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c | |||
@@ -1831,7 +1831,6 @@ struct pvr2_hdw *pvr2_hdw_create(struct usb_interface *intf, | |||
1831 | hdw->controls = kzalloc(sizeof(struct pvr2_ctrl) * hdw->control_cnt, | 1831 | hdw->controls = kzalloc(sizeof(struct pvr2_ctrl) * hdw->control_cnt, |
1832 | GFP_KERNEL); | 1832 | GFP_KERNEL); |
1833 | if (!hdw->controls) goto fail; | 1833 | if (!hdw->controls) goto fail; |
1834 | hdw->hdw_type = hdw_type; | ||
1835 | hdw->hdw_desc = hdw_desc; | 1834 | hdw->hdw_desc = hdw_desc; |
1836 | for (idx = 0; idx < hdw->control_cnt; idx++) { | 1835 | for (idx = 0; idx < hdw->control_cnt; idx++) { |
1837 | cptr = hdw->controls + idx; | 1836 | cptr = hdw->controls + idx; |