From: Linus Walleij Date: Thu, 16 May 2013 07:17:04 +0000 (+0200) Subject: pinctrl: sink pinctrldev_list_mutex X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~29^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44d5f7bbead9e7fbc8731322d5f595d28ad219e9;p=pandora-kernel.git pinctrl: sink pinctrldev_list_mutex The pinctrldev_list_mutex is sinked into the functions that actually traverse the list and lock it there. The code makes much more sense in this way. All the callers are in non-performance critical paths and the code is way more readable this way. Also refactor the function get_pinctrl_dev_from_devname() to follow the design pattern of get_pinctrl_dev_from_of_node() which is slightly simpler. Signed-off-by: Linus Walleij --- Reading git-diff-tree failed