]> git.hungrycats.org Git - linux/commitdiff
[PATCH] USB: fix whiteheat USB serial compile failure on PPC
authorMeelis Roos <mroos@linux.ee>
Fri, 26 Mar 2004 04:32:39 +0000 (20:32 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 26 Mar 2004 04:32:39 +0000 (20:32 -0800)
> Bah, looks like PPC doesn't ever define CMSPAR :(
>
> How about adding something like:
>  #ifndef CMSPAR
>  #define CMSPAR 0
>  #endif
> To the beginning of the driver like the cdc-acm.c driver does?  If that
> works, care to send me a patch?

Yes, it compiles.

drivers/usb/serial/whiteheat.c

index cbdb7a686e889128e7bdda5e43281cff745a5540..c2af5bfc92782d3ee1af226b907caf38ac9e21ba 100644 (file)
 #include "whiteheat_fw.h"              /* firmware for the ConnectTech WhiteHEAT device */
 #include "whiteheat.h"                 /* WhiteHEAT specific commands */
 
+#ifndef CMSPAR
+#define CMSPAR 0
+#endif
+
 /*
  * Version Information
  */