···1717#include <linux/string.h>18181919/*2020- * Codec families have names seperated by commas, so we search for an2121- * individual codec name within the family string. 2020+ * Let drivers decide whether they want to support given codec from their2121+ * probe method. Drivers have direct access to the ac97_t structure and may2222+ * decide based on the id field amongst other things.2223 */2324static int ac97_bus_match(struct device *dev, struct device_driver *drv)2425{2525- return (strstr(dev->bus_id, drv->name) != NULL);2626+ return 1;2627}27282829static int ac97_bus_suspend(struct device *dev, pm_message_t state)2930{3031 int ret = 0;31323232- if (dev->driver && dev->driver->suspend) {3333- ret = dev->driver->suspend(dev, state, SUSPEND_DISABLE);3434- if (ret == 0)3535- ret = dev->driver->suspend(dev, state, SUSPEND_SAVE_STATE);3636- if (ret == 0)3737- ret = dev->driver->suspend(dev, state, SUSPEND_POWER_DOWN);3838- }3333+ if (dev->driver && dev->driver->suspend)3434+ ret = dev->driver->suspend(dev, state, SUSPEND_POWER_DOWN);3935 return ret;4036}4137···3943{4044 int ret = 0;41454242- if (dev->driver && dev->driver->resume) {4646+ if (dev->driver && dev->driver->resume)4347 ret = dev->driver->resume(dev, RESUME_POWER_ON);4444- if (ret == 0)4545- ret = dev->driver->resume(dev, RESUME_RESTORE_STATE);4646- if (ret == 0)4747- ret = dev->driver->resume(dev, RESUME_ENABLE);4848- }4948 return ret;5049}5150
···988988 case 0x33:989989 case 0x29:990990 case 0x24:991991+ case 0x50:991992 case 0x5c:992993 chip->num_freqs = ARRAY_SIZE(tumbler_freqs);993994 chip->model = PMAC_SNAPPER;