linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] yenta: fix YENTA && !CARDBUS build
@ 2005-10-03 15:19 David Vrabel
  2005-10-07 13:43 ` David Vrabel
  0 siblings, 1 reply; 4+ messages in thread
From: David Vrabel @ 2005-10-03 15:19 UTC (permalink / raw)
  To: Linux Kernel

[-- Attachment #1: Type: text/plain, Size: 343 bytes --]

Hi,

yenta_socket no longer builds if CONFIG_CARDBUS is disabled.  It doesn't
look like ene_tune_bridge is relevant in the !CARDBUS configuration so
I've just disabled it.

David Vrabel
-- 
David Vrabel, Design Engineer

Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK         Web: http://www.arcom.com/


[-- Attachment #2: yenta-not-CARDBUS-build-fix --]
[-- Type: text/plain, Size: 1033 bytes --]

yenta: fix build if YENTA && !CARDBUS

(struct pcmcia_socket).tune_bridge only exists if CONFIG_CARDBUS is set but
building yenta_socket without CardBus is valid.

Signed-off-by: David Vrabel <dvrabel@arcom.com>

Index: linux-2.6-working/drivers/pcmcia/ti113x.h
===================================================================
--- linux-2.6-working.orig/drivers/pcmcia/ti113x.h	2005-10-03 14:44:14.000000000 +0100
+++ linux-2.6-working/drivers/pcmcia/ti113x.h	2005-10-03 15:05:12.000000000 +0100
@@ -899,6 +899,7 @@
 	{}
 };
 
+#ifdef CONFIG_CARDBUS
 static void ene_tune_bridge(struct pcmcia_socket *sock, struct pci_bus *bus)
 {
 	struct yenta_socket *socket = container_of(sock, struct yenta_socket, socket);
@@ -927,7 +928,6 @@
 	config_writeb(socket, ENE_TEST_C9, test_c9);
 }
 
-
 static int ene_override(struct yenta_socket *socket)
 {
 	/* install tune_bridge() function */
@@ -935,6 +935,9 @@
 
 	return ti1250_override(socket);
 }
+#else
+#  define ene_override ti1250_override
+#endif
 
 #endif /* _LINUX_TI113X_H */
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [patch] yenta: fix YENTA && !CARDBUS build
  2005-10-03 15:19 [patch] yenta: fix YENTA && !CARDBUS build David Vrabel
@ 2005-10-07 13:43 ` David Vrabel
  2005-10-07 16:34   ` Jiri Slaby
  0 siblings, 1 reply; 4+ messages in thread
From: David Vrabel @ 2005-10-07 13:43 UTC (permalink / raw)
  To: Linux Kernel; +Cc: Linus Torvalds, Andrew Morton

[-- Attachment #1: Type: text/plain, Size: 201 bytes --]

(Previous patch left a warning.)

yenta_socket no longer builds if CONFIG_CARDBUS is disabled.  It doesn't
look like ene_tune_bridge is relevant in the !CARDBUS configuration so
I've just disabled it.

[-- Attachment #2: yenta-not-CARDBUS-build-fix --]
[-- Type: text/plain, Size: 986 bytes --]

yenta: fix build if YENTA && !CARDBUS

(struct pcmcia_socket).tune_bridge only exists if CONFIG_CARDBUS is set but
building yenta_socket without CardBus is valid.

Signed-off-by: David Vrabel <dvrabel@arcom.com>

Index: linux-2.6-working/drivers/pcmcia/ti113x.h
===================================================================
--- linux-2.6-working.orig/drivers/pcmcia/ti113x.h	2005-10-04 15:08:31.000000000 +0100
+++ linux-2.6-working/drivers/pcmcia/ti113x.h	2005-10-04 15:42:25.000000000 +0100
@@ -873,6 +873,7 @@
  * Some fixup code to make everybody happy (TM).
  */
 
+#ifdef CONFIG_CARDBUS
 /**
  * set/clear various test bits:
  * Defaults to clear the bit.
@@ -927,7 +928,6 @@
 	config_writeb(socket, ENE_TEST_C9, test_c9);
 }
 
-
 static int ene_override(struct yenta_socket *socket)
 {
 	/* install tune_bridge() function */
@@ -935,6 +935,9 @@
 
 	return ti1250_override(socket);
 }
+#else
+#  define ene_override ti1250_override
+#endif
 
 #endif /* _LINUX_TI113X_H */
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch] yenta: fix YENTA && !CARDBUS build
  2005-10-07 13:43 ` David Vrabel
@ 2005-10-07 16:34   ` Jiri Slaby
  2005-10-07 19:07     ` Russell King
  0 siblings, 1 reply; 4+ messages in thread
From: Jiri Slaby @ 2005-10-07 16:34 UTC (permalink / raw)
  To: David Vrabel; +Cc: Linux Kernel, Linus Torvalds, Andrew Morton

On 10/7/05, David Vrabel <dvrabel@cantab.net> wrote:
> (Previous patch left a warning.)
>
> yenta_socket no longer builds if CONFIG_CARDBUS is disabled.  It doesn't
> look like ene_tune_bridge is relevant in the !CARDBUS configuration so
> I've just disabled it.
>
>
> yenta: fix build if YENTA && !CARDBUS
>
> (struct pcmcia_socket).tune_bridge only exists if CONFIG_CARDBUS is set but
> building yenta_socket without CardBus is valid.
>
This is a multi-part message in MIME format.

Are you really sure, that you have read Documentation/SubmittingPatches and
http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt
Nobody wants MIMEs. Include it as plain text

thanks,
Jiri Slaby         www.fi.muni.cz/~xslaby
~\-/~      jirislaby@gmail.com      ~\-/~
B67499670407CE62ACC8 22A032CC55C339D47A7E

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch] yenta: fix YENTA && !CARDBUS build
  2005-10-07 16:34   ` Jiri Slaby
@ 2005-10-07 19:07     ` Russell King
  0 siblings, 0 replies; 4+ messages in thread
From: Russell King @ 2005-10-07 19:07 UTC (permalink / raw)
  To: Jiri Slaby; +Cc: David Vrabel, Linux Kernel, Linus Torvalds, Andrew Morton

On Fri, Oct 07, 2005 at 06:34:15PM +0200, Jiri Slaby wrote:
> On 10/7/05, David Vrabel <dvrabel@cantab.net> wrote:
> > (Previous patch left a warning.)
> >
> > yenta_socket no longer builds if CONFIG_CARDBUS is disabled.  It doesn't
> > look like ene_tune_bridge is relevant in the !CARDBUS configuration so
> > I've just disabled it.
> >
> >
> > yenta: fix build if YENTA && !CARDBUS
> >
> > (struct pcmcia_socket).tune_bridge only exists if CONFIG_CARDBUS is set but
> > building yenta_socket without CardBus is valid.
> >
> This is a multi-part message in MIME format.
> 
> Are you really sure, that you have read Documentation/SubmittingPatches and
> http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt
> Nobody wants MIMEs. Include it as plain text

You're providing misleading advice.  mimes are acceptable provided
each part is text/plain.  And some folk need to attach rather than
inline patches to prevent white space damage from broken mailers.

And indeed David's were text/plain so there isn't a problem.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-10-07 19:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-03 15:19 [patch] yenta: fix YENTA && !CARDBUS build David Vrabel
2005-10-07 13:43 ` David Vrabel
2005-10-07 16:34   ` Jiri Slaby
2005-10-07 19:07     ` Russell King

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).