diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2012-10-11 10:35:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-24 18:37:31 -0400 |
commit | 664df38b3c74656261d4227b4dd380cfa453f78f (patch) | |
tree | 35d05f657d0cd04d562edea962bc9122179caf64 /drivers/misc/mei/init.c | |
parent | 601a1efa630aab0ca72bf8d638c441a09654b250 (diff) |
mei: use mei_io_cb_ warppers also for control flows
move the mei_io_cb_ wrappers to to iorw.c for global use
and use them also for handling control flows
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/init.c')
-rw-r--r-- | drivers/misc/mei/init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c index 4666f0ba350a..1f13eb97a10a 100644 --- a/drivers/misc/mei/init.c +++ b/drivers/misc/mei/init.c | |||
@@ -668,12 +668,10 @@ int mei_disconnect_host_client(struct mei_device *dev, struct mei_cl *cl) | |||
668 | if (cl->state != MEI_FILE_DISCONNECTING) | 668 | if (cl->state != MEI_FILE_DISCONNECTING) |
669 | return 0; | 669 | return 0; |
670 | 670 | ||
671 | cb = kzalloc(sizeof(struct mei_cl_cb), GFP_KERNEL); | 671 | cb = mei_io_cb_init(cl, NULL); |
672 | if (!cb) | 672 | if (!cb) |
673 | return -ENOMEM; | 673 | return -ENOMEM; |
674 | 674 | ||
675 | mei_io_list_init(cb); | ||
676 | cb->file_private = cl; | ||
677 | cb->major_file_operations = MEI_CLOSE; | 675 | cb->major_file_operations = MEI_CLOSE; |
678 | if (dev->mei_host_buffer_is_empty) { | 676 | if (dev->mei_host_buffer_is_empty) { |
679 | dev->mei_host_buffer_is_empty = false; | 677 | dev->mei_host_buffer_is_empty = false; |