[PATCH] MODULE_DEVICE_TABLE for C-Media PCI audio driver

Andrey Panin (pazke@orbita1.ru)
Tue, 30 Oct 2001 15:50:46 +0300


--uQr8t48UFsdbeI+V
Content-Type: multipart/mixed; boundary="ZPt4rx8FFjLCG7dd"
Content-Disposition: inline

--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Yet another driver lacking MODULE_DEVICE_TABLE.
Please consider applying.

--=20
Andrey Panin | Embedded systems software engineer
pazke@orbita1.ru | PGP key: http://www.orbita1.ru/~pazke/AndreyPanin=
.asc
--ZPt4rx8FFjLCG7dd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-cmpci
Content-Transfer-Encoding: quoted-printable

diff -u -X /usr/dontdiff /linux.vanilla/drivers/sound/cmpci.c /linux/driver=
s/sound/cmpci.c
--- /linux.vanilla/drivers/sound/cmpci.c Wed Oct 17 11:25:58 2001
+++ /linux/drivers/sound/cmpci.c Sat Oct 20 09:37:05 2001
@@ -2847,6 +2847,17 @@
MODULE_PARM_DESC(use_line_as_bass, "(1/0) Use line-in jack as bass/center"=
);
MODULE_PARM_DESC(joystick, "(1/0) Enable joystick interface, still need jo=
ystick driver");
=20
+static struct pci_device_id cmpci_pci_tbl[] =3D {
+ { PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8738,=20
+ PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
+ { PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338A,=20
+ PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
+ { PCI_VENDOR_ID_CMEDIA, PCI_DEVICE_ID_CMEDIA_CM8338B,=20
+ PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
+ { 0 }
+};
+MODULE_DEVICE_TABLE(pci, cmpci_pci_tbl);
+
void initialize_chip(struct pci_dev *pcidev)
{
struct cm_state *s;

--ZPt4rx8FFjLCG7dd--

--uQr8t48UFsdbeI+V
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE73qImBm4rlNOo3YgRAjbFAJ45cvJj3QaQtArclUe2e5EaUQosoACcDP7Y
F2QCcpQovhi8qGVcXnjmAU8=
=3bz/
-----END PGP SIGNATURE-----

--uQr8t48UFsdbeI+V--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/