mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
[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: Nicolas Pitre <nico@cam.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
460dc98afc
commit
3a91e95969
1 changed files with 4 additions and 3 deletions
|
@ -17,12 +17,13 @@
|
|||
#include <linux/string.h>
|
||||
|
||||
/*
|
||||
* Codec families have names seperated by commas, so we search for an
|
||||
* individual codec name within the family string.
|
||||
* Let drivers decide whether they want to support given codec from their
|
||||
* 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)
|
||||
{
|
||||
return (strstr(dev->bus_id, drv->name) != NULL);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int ac97_bus_suspend(struct device *dev, pm_message_t state)
|
||||
|
|
Loading…
Reference in a new issue