Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Move ip2.c and ip2main.c to drivers/char/ip2/ where the other files used by this driver reside.

Renamed ip2.c to ip2base.c to allow ip2.o to be built from multiple
objects.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Michael H. Warfield <mhw@WittsEnd.com>

authored by

Adrian Bunk and committed by
Adrian Bunk
9c4b562a 0f36b018

+22 -14
+1 -1
drivers/char/Makefile
··· 31 31 obj-$(CONFIG_A2232) += ser_a2232.o generic_serial.o 32 32 obj-$(CONFIG_ATARI_DSP56K) += dsp56k.o 33 33 obj-$(CONFIG_MOXA_SMARTIO) += mxser.o 34 - obj-$(CONFIG_COMPUTONE) += ip2.o ip2main.o 34 + obj-$(CONFIG_COMPUTONE) += ip2/ 35 35 obj-$(CONFIG_RISCOM8) += riscom8.o 36 36 obj-$(CONFIG_ISI) += isicom.o 37 37 obj-$(CONFIG_SYNCLINK) += synclink.o
+3 -3
drivers/char/ip2.c drivers/char/ip2/ip2base.c
··· 20 20 #define __initdata 21 21 #endif 22 22 23 - #include "./ip2/ip2types.h" 24 - #include "./ip2/fip_firm.h" // the meat 23 + #include "ip2types.h" 24 + #include "fip_firm.h" // the meat 25 25 26 26 int 27 27 ip2_loadmain(int *, int *, unsigned char *, int ); // ref into ip2main.c 28 28 29 29 /* Note: Add compiled in defaults to these arrays, not to the structure 30 - in ip2/ip2.h any longer. That structure WILL get overridden 30 + in ip2.h any longer. That structure WILL get overridden 31 31 by these values, or command line values, or insmod values!!! =mhw= 32 32 */ 33 33 static int io[IP2_MAX_BOARDS]= { 0, 0, 0, 0 };
+8
drivers/char/ip2/Makefile
··· 1 + # 2 + # Makefile for the Computone IntelliPort Plus Driver 3 + # 4 + 5 + obj-$(CONFIG_COMPUTONE) += ip2.o ip2main.o 6 + 7 + ip2-objs := ip2base.o 8 +
+10 -10
drivers/char/ip2main.c drivers/char/ip2/ip2main.c
··· 35 35 // Clean up potential NULL pointer dereferences 36 36 // Clean up devfs registration 37 37 // Add kernel command line parsing for io and irq 38 - // Compile defaults for io and irq are now set in ip2.c not ip2/ip2.h! 38 + // Compile defaults for io and irq are now set in ip2.c not ip2.h! 39 39 // Reworked poll_only hack for explicit parameter setting 40 40 // You must now EXPLICITLY set poll_only = 1 or set all irqs to 0 41 41 // Merged ip2_loadmain and old_ip2_init ··· 123 123 124 124 #include <asm/uaccess.h> 125 125 126 - #include "./ip2/ip2types.h" 127 - #include "./ip2/ip2trace.h" 128 - #include "./ip2/ip2ioctl.h" 129 - #include "./ip2/ip2.h" 130 - #include "./ip2/i2ellis.h" 131 - #include "./ip2/i2lib.h" 126 + #include "ip2types.h" 127 + #include "ip2trace.h" 128 + #include "ip2ioctl.h" 129 + #include "ip2.h" 130 + #include "i2ellis.h" 131 + #include "i2lib.h" 132 132 133 133 /***************** 134 134 * /proc/ip2mem * ··· 282 282 /* Code */ 283 283 /********/ 284 284 285 - #include "./ip2/i2ellis.c" /* Extremely low-level interface services */ 286 - #include "./ip2/i2cmd.c" /* Standard loadware command definitions */ 287 - #include "./ip2/i2lib.c" /* High level interface services */ 285 + #include "i2ellis.c" /* Extremely low-level interface services */ 286 + #include "i2cmd.c" /* Standard loadware command definitions */ 287 + #include "i2lib.c" /* High level interface services */ 288 288 289 289 /* Configuration area for modprobe */ 290 290