Commit 3a91e959 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Jaroslav Kysela

[ALSA] remove bogus match method for ac97_bus

AC97 Codec
The bus_id is initialized with a generic identifier string which is not
really useful for proper driver matching.  Let the driver decide what it
needs via its probe method instead.
Signed-off-by: default avatarNicolas Pitre <nico@cam.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 460dc98a
...@@ -17,12 +17,13 @@ ...@@ -17,12 +17,13 @@
#include <linux/string.h> #include <linux/string.h>
/* /*
* Codec families have names seperated by commas, so we search for an * Let drivers decide whether they want to support given codec from their
* individual codec name within the family string. * probe method. Drivers have direct access to the ac97_t structure and may
* decide based on the id field amongst other things.
*/ */
static int ac97_bus_match(struct device *dev, struct device_driver *drv) static int ac97_bus_match(struct device *dev, struct device_driver *drv)
{ {
return (strstr(dev->bus_id, drv->name) != NULL); return 1;
} }
static int ac97_bus_suspend(struct device *dev, pm_message_t state) static int ac97_bus_suspend(struct device *dev, pm_message_t state)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment