linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@xenotime.net>
To: akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org, Joachim Eastwood <manabian@gmail.com>
Subject: [PATCH -mm] leds: fix pca9532 build when GPIOLIB is disabled
Date: Fri, 1 Apr 2011 08:57:12 -0700	[thread overview]
Message-ID: <20110401085712.2eb1d567.rdunlap@xenotime.net> (raw)
In-Reply-To: <201103312224.p2VMOA5g000983@imap1.linux-foundation.org>

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix build when GPIOLIB is not enabled:

drivers/leds/leds-pca9532.c:39: error: field 'gpio' has incomplete type

for: drivers-leds-leds-pca9532c-add-gpio-capability.patch

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Joachim Eastwood <manabian@gmail.com>
---
 drivers/leds/leds-pca9532.c |    2 ++
 1 file changed, 2 insertions(+)

--- mmotm-2011-0331-1448.orig/drivers/leds/leds-pca9532.c
+++ mmotm-2011-0331-1448/drivers/leds/leds-pca9532.c
@@ -36,7 +36,9 @@ struct pca9532_data {
 	struct mutex update_lock;
 	struct input_dev *idev;
 	struct work_struct work;
+#ifdef CONFIG_LEDS_PCA9532_GPIO
 	struct gpio_chip gpio;
+#endif
 	u8 pwm[2];
 	u8 psc[2];
 };

  parent reply	other threads:[~2011-04-01 15:57 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-31 21:48 mmotm 2011-03-31-14-48 uploaded akpm
2011-04-01 15:56 ` [PATCH -mm] olpc: xo_1 needs delay.h Randy Dunlap
2011-04-01 15:57 ` Randy Dunlap [this message]
2011-04-02  8:56 ` nfs client doesn't work [was: mmotm 2011-03-31-14-48 uploaded] Jiri Slaby
     [not found]   ` <1302122693.16786.0.camel@lade.trondhjem.org>
2011-04-07  6:42     ` Jiri Slaby
2011-04-11 20:40       ` Jiri Slaby
2011-04-11 20:40         ` Jiri Slaby
2011-04-11 21:08           ` Jiri Slaby
2011-04-12 17:41             ` [PATCH] NFS: Fix infinite loop in gss_create_upcall() Bryan Schumaker
2011-04-12 18:05               ` Jiri Slaby
2011-04-12 18:31                 ` Trond Myklebust
2011-04-12 18:34                   ` Jiri Slaby
2011-04-12 18:38                     ` Trond Myklebust
2011-04-12 18:43                     ` Bryan Schumaker
2011-04-12 18:52                       ` Jiri Slaby
2011-04-13 20:42                         ` Bryan Schumaker
2011-04-14 20:37                           ` Jiri Slaby
2011-04-14 21:21                             ` Trond Myklebust
2011-04-14 21:30                               ` Jiri Slaby
2011-04-11 20:56         ` nfs client doesn't work [was: mmotm 2011-03-31-14-48 uploaded] Bryan Schumaker
2011-04-11 21:19           ` Jiri Slaby
2011-04-03  9:11 ` mmotm 2011-03-31-14-48 uploaded KOSAKI Motohiro
2011-04-04 20:46   ` Peter Zijlstra
2011-04-05  5:23     ` KOSAKI Motohiro
2011-04-11  4:11   ` KOSAKI Motohiro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110401085712.2eb1d567.rdunlap@xenotime.net \
    --to=rdunlap@xenotime.net \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manabian@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).