[PATCH 0/2] Two fixes for leds-tca6507 - Version 2

From: NeilBrown
Date: Tue Dec 20 2011 - 00:46:30 EST


The driver didn't compile on arches which did not define GPIOLIB.
Fix this by excluding gpio support on those archs.
[Fix for the 'remove' function too]
Reported by: Randy Dunlap <rdunlap@xxxxxxxxxxxx> and
Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>

off-by-one error in choose_times
Reported by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Thanks,
NeilBrown

---

NeilBrown (2):
leds-tca6507 - fix off by one error.
leds-tca6507: allow driver to compile when GPIOLIB is not available.


drivers/leds/leds-tca6507.c | 100 +++++++++++++++++++++++++++++-------------
include/linux/leds-tca6507.h | 3 +
2 files changed, 71 insertions(+), 32 deletions(-)

--
Signature

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/