diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2015-02-10 10:39:31 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-01 19:36:59 -0800 |
commit | b7d885145538ddedb1ae23b782ab7c7c0a856e9f (patch) | |
tree | 9470b5807362a068e85487a429fb3b3f543af53e /drivers/misc/mei/hbm.c | |
parent | e9395e3f8952110bda60b54ad03ec52c6e9c7dbd (diff) | |
download | op-kernel-dev-b7d885145538ddedb1ae23b782ab7c7c0a856e9f.zip op-kernel-dev-b7d885145538ddedb1ae23b782ab7c7c0a856e9f.tar.gz |
mei: revamp me clients list handling
1. Use rw lock to access the me_clients list
2. Reuse already defined find functions also when
removing particular me client
3. Add wrappers for addition and deletion
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/hbm.c')
-rw-r--r-- | drivers/misc/mei/hbm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c index c8412d4..4f83e9a 100644 --- a/drivers/misc/mei/hbm.c +++ b/drivers/misc/mei/hbm.c @@ -338,7 +338,8 @@ static int mei_hbm_me_cl_add(struct mei_device *dev, me_cl->client_id = res->me_addr; me_cl->mei_flow_ctrl_creds = 0; - list_add(&me_cl->list, &dev->me_clients); + mei_me_cl_add(dev, me_cl); + return 0; } |