[PATCH v3] ARM/mx35/3ds: gpio: add mc9s08dz60 gpio function

Fabio Estevam festevam at gmail.com
Wed Nov 9 11:51:01 EST 2011


On Wed, Nov 9, 2011 at 1:46 PM, Marc Kleine-Budde <mkl at pengutronix.de> wrote:
>> +static int mc9s08dz60_remove(struct i2c_client *client)
>> +{
>> +     struct mc9s08dz60 *mc9s;
>> +     int ret;
>> +
>> +     mc9s = i2c_get_clientdata(client);
>> +
>> +     i2c_set_clientdata(client, NULL);
>> +
>> +     ret = gpiochip_remove(&mc9s->chip);
>> +     if (!ret)
>> +             kfree(mc9s);
>> +
>> +     return 0;
>
> return 0 if gpiochip_remove() fails?

See Russell's comment about returning error on this remove function:
http://www.spinics.net/lists/arm-kernel/msg146501.html

Regards,

Fabio Estevam



More information about the linux-arm-kernel mailing list