From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752168Ab1LTFqP (ORCPT ); Tue, 20 Dec 2011 00:46:15 -0500 Received: from cantor2.suse.de ([195.135.220.15]:34043 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750742Ab1LTFqI (ORCPT ); Tue, 20 Dec 2011 00:46:08 -0500 From: NeilBrown To: Andrew Morton Date: Tue, 20 Dec 2011 16:44:41 +1100 Subject: [PATCH 0/2] Two fixes for leds-tca6507 - Version 2 User-Agent: StGIT/0.14.3 Cc: rpurdie@rpsys.net, linux-kernel@vger.kernel.org Cc: Randy Dunlap Message-ID: <20111220054233.7043.3561.stgit@notabene.brown> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 and Stephen Rothwell off-by-one error in choose_times Reported by: Dan Carpenter 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