X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=sound%2Fac97_bus.c;h=52e4bc54c9acac2264be07b2b517e9fbb1608333;hb=99bc7215bc60f6cd414cf1b85cd9d52cc596cccb;hp=55791a0b3943c81f5dc5c65133bcc5a8d0d07827;hpb=d781c23e9b46f33c1c6c07febae36f37a11f9d4d;p=firefly-linux-kernel-4.4.55.git diff --git a/sound/ac97_bus.c b/sound/ac97_bus.c index 55791a0b3943..52e4bc54c9ac 100644 --- a/sound/ac97_bus.c +++ b/sound/ac97_bus.c @@ -89,35 +89,9 @@ static int ac97_bus_match(struct device *dev, struct device_driver *drv) return 1; } -#ifdef CONFIG_PM -static int ac97_bus_suspend(struct device *dev, pm_message_t state) -{ - int ret = 0; - - if (dev->driver && dev->driver->suspend) - ret = dev->driver->suspend(dev, state); - - return ret; -} - -static int ac97_bus_resume(struct device *dev) -{ - int ret = 0; - - if (dev->driver && dev->driver->resume) - ret = dev->driver->resume(dev); - - return ret; -} -#endif /* CONFIG_PM */ - struct bus_type ac97_bus_type = { .name = "ac97", .match = ac97_bus_match, -#ifdef CONFIG_PM - .suspend = ac97_bus_suspend, - .resume = ac97_bus_resume, -#endif /* CONFIG_PM */ }; static int __init ac97_bus_init(void)