From: Stephen Warren Date: Wed, 22 Feb 2012 21:26:01 +0000 (-0700) Subject: pinctrl: remove pin and hogs locks from struct pinctrl_dev X-Git-Tag: v3.4-rc1~128^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2304b4737f492b6ee9b714d8129e153af0bef989;p=pandora-kernel.git pinctrl: remove pin and hogs locks from struct pinctrl_dev struct pinctrl_dev's pin_desc_tree_lock and pinctrl_hogs_lock aren't useful; the data they protect is read-only except when registering or unregistering a pinctrl_dev, and at those times, it doesn't make sense to protect one part of the structure independently from the rest. Move pinctrl_init_device_debugfs() to the end of pinctrl_register() so that debugfs can't access the struct pinctrl_dev until it's fully initialized, i.e. after the hogs are set up. Signed-off-by: Stephen Warren Signed-off-by: Linus Walleij --- Reading git-diff-tree failed