[PATCH] AD1848 OSS driver build fix for 2.5.63-bk (bug #289)

Muli Ben-Yehuda (mulix@mulix.org)
Thu, 27 Feb 2003 16:53:18 +0200


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-15177-1046358226-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

This patch fixes bugzilla bug #289,
http://bugme.osdl.org/show_bug.cgi?id=3D289, PNP API breakage in the
ad1848 sound driver.=20

Tested and works fine. Please apply.=20

diff -Nru a/sound/oss/ad1848.c b/sound/oss/ad1848.c
--- a/sound/oss/ad1848.c Thu Feb 27 10:32:05 2003
+++ b/sound/oss/ad1848.c Thu Feb 27 10:32:05 2003
@@ -2987,7 +2987,7 @@
if (err < 0)
return(NULL);
=20
- if((err =3D pnp_activate_dev(dev,NULL)) < 0) {
+ if((err =3D pnp_activate_dev(dev)) < 0) {
printk(KERN_ERR "ad1848: %s %s config failed (out of resources?)[%d]\n",=
devname, resname, err);
=20
pnp_device_detach(dev);
@@ -3024,7 +3024,7 @@
=20
static int __init ad1848_isapnp_init(struct address_info *hw_config, struc=
t pnp_card *bus, int slot)
{
- char *busname =3D bus->name[0] ? bus->name : ad1848_isapnp_list[slot].nam=
e;
+ char *busname =3D bus->dev.name[0] ? bus->dev.name : ad1848_isapnp_list[s=
lot].name;
=20
/* Initialize this baby. */
=20

--=20
Muli Ben-Yehuda
http://www.mulix.org

--=_courier-15177-1046358226-0001-2
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+XiZeKRs727/VN8sRAgmeAKCHQ4OLHzVL/YflaZAjHg+DRWhhiACgqohH
MCSOYFjyxjuJYmd4ZKENx7w=
=FyzB
-----END PGP SIGNATURE-----

--=_courier-15177-1046358226-0001-2--