[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1330109168-11929-1-git-send-email-w.sang@pengutronix.de>
Date: Fri, 24 Feb 2012 19:46:08 +0100
From: Wolfram Sang <w.sang@...gutronix.de>
To: linux-kernel@...r.kernel.org
Cc: Wolfram Sang <w.sang@...gutronix.de>, NeilBrown <neilb@...e.de>,
Richard Purdie <rpurdie@...ux.intel.com>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH] leds: tca6507: Remove obsolete cleanup for clientdata
A few new i2c-drivers came into the kernel which clear the clientdata-pointer
on exit or error. This is obsolete meanwhile, the core will do it.
Signed-off-by: Wolfram Sang <w.sang@...gutronix.de>
Cc: NeilBrown <neilb@...e.de>
Cc: Richard Purdie <rpurdie@...ux.intel.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>
---
drivers/leds/leds-tca6507.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/leds/leds-tca6507.c b/drivers/leds/leds-tca6507.c
index 133f89f..2fc327e 100644
--- a/drivers/leds/leds-tca6507.c
+++ b/drivers/leds/leds-tca6507.c
@@ -728,7 +728,6 @@ exit:
if (tca->leds[i].led_cdev.name)
led_classdev_unregister(&tca->leds[i].led_cdev);
cancel_work_sync(&tca->work);
- i2c_set_clientdata(client, NULL);
kfree(tca);
return err;
}
@@ -745,7 +744,6 @@ static int __devexit tca6507_remove(struct i2c_client *client)
}
tca6507_remove_gpio(tca);
cancel_work_sync(&tca->work);
- i2c_set_clientdata(client, NULL);
kfree(tca);
return 0;
--
1.7.2.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists