mei: bus: Reset event_cb when disabling a device

After cancelling all reads from the disable hook, we need to reset the
event_cb pointer as well or else we won't be able to set a new one up
when re-enabling the device.

Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Samuel Ortiz 2013-05-21 18:52:09 +02:00 коммит произвёл Greg Kroah-Hartman
Родитель d2242a3843
Коммит bbedf2fc20
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -496,6 +496,8 @@ int mei_cl_disable_device(struct mei_cl_device *device)
}
}
device->event_cb = NULL;
mutex_unlock(&dev->device_lock);
if (!device->ops || !device->ops->disable)