|
|
static inline int platform_driver_register(struct platform_driver *drv) | static inline int platform_driver_register(struct platform_driver *drv) |
{ | { |
drv->driver.bus = &platform_bus_type; | drv->driver.bus = &platform_bus_type; |
drv->driver.probe = snd_platform_driver_probe; |
if (drv->probe) |
drv->driver.remove = snd_platform_driver_remove; |
drv->driver.probe = snd_platform_driver_probe; |
|
if (drv->remove) |
|
drv->driver.remove = snd_platform_driver_remove; |
if (drv->suspend) | if (drv->suspend) |
drv->driver.suspend = snd_platform_driver_suspend; | drv->driver.suspend = snd_platform_driver_suspend; |
if (drv->resume) | if (drv->resume) |