From: Wolfram Sang Date: Thu, 13 Jan 2011 01:00:23 +0000 (-0800) Subject: gpiolib: annotate gpio-intialization with __must_check X-Git-Tag: v2.6.38-rc1~326 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fdae42d361bbb431ca0ab0efed5126a94821177;p=pandora-kernel.git gpiolib: annotate gpio-intialization with __must_check Because GPIOs can have crucial functions especially in embedded systems, we are better safe than sorry regarding their configuration. For gpio_request, the documentation is simply enforced: "The return value of gpio_request() must be checked." For gpio_direction_* and gpio_request_*, we now act accordingly. Signed-off-by: Wolfram Sang Cc: David Brownell Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed