diff options
author | Mike Isely <isely@pobox.com> | 2006-03-11 21:27:44 -0600 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2006-03-11 21:27:44 -0600 |
commit | 489136d3001a4bc8c145bbf2fcfa94b030d3ce05 (patch) | |
tree | 1e96b1ab47cff04dc84d264b80f0cc95bf837c8f /linux/drivers/media/video/pvrusb2/pvrusb2-main.c | |
parent | 2c8bf0866f80ba38b84a4078e934c6b2d4ccc699 (diff) | |
download | mediapointer-dvb-s2-489136d3001a4bc8c145bbf2fcfa94b030d3ce05.tar.gz mediapointer-dvb-s2-489136d3001a4bc8c145bbf2fcfa94b030d3ce05.tar.bz2 |
Fix compilation issue involving MODULE_DEVICE_TABLE in pvrusb2
From: Mike Isely <isely@pobox.com>
Move MODULE_DEVICE_TABLE to pvrusb2-hdw.c, in order to solve
compilation issue where that macro is pointing to an external symbol.
I have not seen this problem, but others have and so I'm fixing the
code. Different behavior is likely tied to gcc version in use.
Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-main.c')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-main.c b/linux/drivers/media/video/pvrusb2/pvrusb2-main.c index 8e22c93e0..c554671af 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-main.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-main.c @@ -161,7 +161,11 @@ static void __exit pvr_exit(void) module_init(pvr_init); module_exit(pvr_exit); -MODULE_DEVICE_TABLE (usb, pvr2_device_table); +/* Mike Isely <mcisely@pobox.com> 11-Mar-2006: See pvrusb2-hdw.c for + MODULE_DEVICE_TABLE(). We have to declare that attribute there + because that's where the device table actually is now and it seems + that certain gcc configurations get angry if MODULE_DEVICE_TABLE() + is used on what ends up being an external symbol. */ MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESC); MODULE_LICENSE("GPL"); |