linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anand Gadiyar <gadiyar@ti.com>
To: linux-omap@vger.kernel.org, linux-wireless@vger.kernel.org
Cc: Anand Gadiyar <gadiyar@ti.com>, Ohad Ben-Cohen <ohad@wizery.com>,
	Tony Lindgren <tony@atomide.com>
Subject: [PATCH] omap: zoom2: fix build break when CONFIG_WL12XX_PLATFORM_DATA=n
Date: Sat,  2 Oct 2010 02:03:56 +0530	[thread overview]
Message-ID: <1285965236-17907-1-git-send-email-gadiyar@ti.com> (raw)

Fix this build break when CONFIG_WL12XX_PLATFORM_DATA is not set.

  LD      .tmp_vmlinux1
arch/arm/mach-omap2/built-in.o: In function `zoom_peripherals_init':
/home/userdata/a0393673/kernels/mainline/linux-2.6/arch/arm/mach-omap2/board-zoom-peripherals.c:333: undefined reference to `wl12xx_set_platform_data'
make: *** [.tmp_vmlinux1] Error 1

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Cc: Ohad Ben-Cohen <ohad@wizery.com>
Cc: Tony Lindgren <tony@atomide.com>
---
There are still many warnings about the function wl12xx_set_platform_data
being unused. Haven't fixed those. Ohad, care to take a look?

 include/linux/wl12xx.h |    7 +++++++
 1 file changed, 7 insertions(+)

Index: linux-2.6/include/linux/wl12xx.h
===================================================================
--- linux-2.6.orig/include/linux/wl12xx.h
+++ linux-2.6/include/linux/wl12xx.h
@@ -32,7 +32,14 @@ struct wl12xx_platform_data {
 	int board_ref_clock;
 };
 
+#ifdef CONFIG_WL12XX_PLATFORM_DATA
 int wl12xx_set_platform_data(const struct wl12xx_platform_data *data);
+#else
+static int wl12xx_set_platform_data(const struct wl12xx_platform_data *data)
+{
+	return 0;
+}
+#endif
 const struct wl12xx_platform_data *wl12xx_get_platform_data(void);
 
 #endif

             reply	other threads:[~2010-10-01 20:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-01 20:33 Anand Gadiyar [this message]
2010-10-01 21:21 ` [PATCH] omap: zoom2: fix build break when CONFIG_WL12XX_PLATFORM_DATA=n Ohad Ben-Cohen
2010-10-01 23:02   ` Anand Gadiyar
2010-10-01 23:09     ` Ohad Ben-Cohen

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=1285965236-17907-1-git-send-email-gadiyar@ti.com \
    --to=gadiyar@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=ohad@wizery.com \
    --cc=tony@atomide.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).