···17#include <linux/string.h>1819/*20- * Codec families have names seperated by commas, so we search for an21- * individual codec name within the family string. 022 */23static int ac97_bus_match(struct device *dev, struct device_driver *drv)24{25- return (strstr(dev->bus_id, drv->name) != NULL);26}2728static int ac97_bus_suspend(struct device *dev, pm_message_t state)29{30 int ret = 0;3132- if (dev->driver && dev->driver->suspend) {33- ret = dev->driver->suspend(dev, state, SUSPEND_DISABLE);34- if (ret == 0)35- ret = dev->driver->suspend(dev, state, SUSPEND_SAVE_STATE);36- if (ret == 0)37- ret = dev->driver->suspend(dev, state, SUSPEND_POWER_DOWN);38- }39 return ret;40}41···39{40 int ret = 0;4142- if (dev->driver && dev->driver->resume) {43 ret = dev->driver->resume(dev, RESUME_POWER_ON);44- if (ret == 0)45- ret = dev->driver->resume(dev, RESUME_RESTORE_STATE);46- if (ret == 0)47- ret = dev->driver->resume(dev, RESUME_ENABLE);48- }49 return ret;50}51
···17#include <linux/string.h>1819/*20+ * Let drivers decide whether they want to support given codec from their21+ * probe method. Drivers have direct access to the ac97_t structure and may22+ * decide based on the id field amongst other things.23 */24static int ac97_bus_match(struct device *dev, struct device_driver *drv)25{26+ return 1;27}2829static int ac97_bus_suspend(struct device *dev, pm_message_t state)30{31 int ret = 0;3233+ if (dev->driver && dev->driver->suspend)34+ ret = dev->driver->suspend(dev, state, SUSPEND_POWER_DOWN);0000035 return ret;36}37···43{44 int ret = 0;4546+ if (dev->driver && dev->driver->resume)47 ret = dev->driver->resume(dev, RESUME_POWER_ON);0000048 return ret;49}50
···988 case 0x33:989 case 0x29:990 case 0x24:0991 case 0x5c:992 chip->num_freqs = ARRAY_SIZE(tumbler_freqs);993 chip->model = PMAC_SNAPPER;
···988 case 0x33:989 case 0x29:990 case 0x24:991+ case 0x50:992 case 0x5c:993 chip->num_freqs = ARRAY_SIZE(tumbler_freqs);994 chip->model = PMAC_SNAPPER;