This is a note to let you know that I've just added the patch titled

    gpio: squelch a compiler warning

to the 3.10-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     gpio-squelch-a-compiler-warning.patch
and it can be found in the queue-3.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From [email protected]  Tue Feb  3 14:46:37 2015
From: Martin Kaiser <[email protected]>
Date: Fri, 30 Jan 2015 15:01:29 +0100
Subject: gpio: squelch a compiler warning
To: [email protected]
Cc: [email protected]
Message-ID: <[email protected]>

From: Martin Kaiser <[email protected]>

drivers/gpio/gpiolib-of.c: In function 'of_gpiochip_find_and_xlate':
drivers/gpio/gpiolib-of.c:51:21: warning: assignment makes integer from
pointer without a cast [enabled by default]
   gg_data->out_gpio = ERR_PTR(ret);
                     ^
this was introduced in d1c3449160df60fac4abb56f0ba0a3784305e43e

the upstream kernel changed the type of out_gpio from int to struct gpio_desc *
as part of a larger refactoring that wasn't backported

Signed-off-by: Martin Kaiser <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 drivers/gpio/gpiolib-of.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/gpio/gpiolib-of.c
+++ b/drivers/gpio/gpiolib-of.c
@@ -48,7 +48,7 @@ static int of_gpiochip_find_and_xlate(st
                 * Return true to stop looking and return the translation
                 * error via out_gpio
                 */
-               gg_data->out_gpio = ERR_PTR(ret);
+               gg_data->out_gpio = ret;
                return true;
         }
 


Patches currently in stable-queue which might be from [email protected] are

queue-3.10/gpio-squelch-a-compiler-warning.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to