aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-10-19 08:09:44 -0400
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-11-01 11:15:23 -0400
commit3eb2ebcb8e8d2e57d7a9f21ffe1dc82bf0322bdc (patch)
treebc2d5b9b1435358d4b8c13073825a4229a3e31f8
parent310c7585e8300ddc46211df0757c11e4299ec482 (diff)
scsi: aha152x: rename the PCMCIA define
We plan to enable building the PCMCIA core and drivers, and the non-prefixed PCMCIA name clashes with some arch headers. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r--drivers/scsi/aha152x.c14
-rw-r--r--drivers/scsi/pcmcia/aha152x_core.c2
2 files changed, 8 insertions, 8 deletions
diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c
index 4d7b0e0adbf7..301b3cad15f8 100644
--- a/drivers/scsi/aha152x.c
+++ b/drivers/scsi/aha152x.c
@@ -269,7 +269,7 @@ static LIST_HEAD(aha152x_host_list);
269/* DEFINES */ 269/* DEFINES */
270 270
271/* For PCMCIA cards, always use AUTOCONF */ 271/* For PCMCIA cards, always use AUTOCONF */
272#if defined(PCMCIA) || defined(MODULE) 272#if defined(AHA152X_PCMCIA) || defined(MODULE)
273#if !defined(AUTOCONF) 273#if !defined(AUTOCONF)
274#define AUTOCONF 274#define AUTOCONF
275#endif 275#endif
@@ -297,7 +297,7 @@ CMD_INC_RESID(struct scsi_cmnd *cmd, int inc)
297 297
298#define DELAY_DEFAULT 1000 298#define DELAY_DEFAULT 1000
299 299
300#if defined(PCMCIA) 300#if defined(AHA152X_PCMCIA)
301#define IRQ_MIN 0 301#define IRQ_MIN 0
302#define IRQ_MAX 16 302#define IRQ_MAX 16
303#else 303#else
@@ -328,7 +328,7 @@ MODULE_AUTHOR("Jürgen Fischer");
328MODULE_DESCRIPTION(AHA152X_REVID); 328MODULE_DESCRIPTION(AHA152X_REVID);
329MODULE_LICENSE("GPL"); 329MODULE_LICENSE("GPL");
330 330
331#if !defined(PCMCIA) 331#if !defined(AHA152X_PCMCIA)
332#if defined(MODULE) 332#if defined(MODULE)
333static int io[] = {0, 0}; 333static int io[] = {0, 0};
334module_param_hw_array(io, int, ioport, NULL, 0); 334module_param_hw_array(io, int, ioport, NULL, 0);
@@ -391,7 +391,7 @@ static struct isapnp_device_id id_table[] = {
391MODULE_DEVICE_TABLE(isapnp, id_table); 391MODULE_DEVICE_TABLE(isapnp, id_table);
392#endif /* ISAPNP */ 392#endif /* ISAPNP */
393 393
394#endif /* !PCMCIA */ 394#endif /* !AHA152X_PCMCIA */
395 395
396static struct scsi_host_template aha152x_driver_template; 396static struct scsi_host_template aha152x_driver_template;
397 397
@@ -863,7 +863,7 @@ void aha152x_release(struct Scsi_Host *shpnt)
863 if (shpnt->irq) 863 if (shpnt->irq)
864 free_irq(shpnt->irq, shpnt); 864 free_irq(shpnt->irq, shpnt);
865 865
866#if !defined(PCMCIA) 866#if !defined(AHA152X_PCMCIA)
867 if (shpnt->io_port) 867 if (shpnt->io_port)
868 release_region(shpnt->io_port, IO_RANGE); 868 release_region(shpnt->io_port, IO_RANGE);
869#endif 869#endif
@@ -2924,7 +2924,7 @@ static struct scsi_host_template aha152x_driver_template = {
2924 .slave_alloc = aha152x_adjust_queue, 2924 .slave_alloc = aha152x_adjust_queue,
2925}; 2925};
2926 2926
2927#if !defined(PCMCIA) 2927#if !defined(AHA152X_PCMCIA)
2928static int setup_count; 2928static int setup_count;
2929static struct aha152x_setup setup[2]; 2929static struct aha152x_setup setup[2];
2930 2930
@@ -3392,4 +3392,4 @@ static int __init aha152x_setup(char *str)
3392__setup("aha152x=", aha152x_setup); 3392__setup("aha152x=", aha152x_setup);
3393#endif 3393#endif
3394 3394
3395#endif /* !PCMCIA */ 3395#endif /* !AHA152X_PCMCIA */
diff --git a/drivers/scsi/pcmcia/aha152x_core.c b/drivers/scsi/pcmcia/aha152x_core.c
index dba3716511c5..24b89228b241 100644
--- a/drivers/scsi/pcmcia/aha152x_core.c
+++ b/drivers/scsi/pcmcia/aha152x_core.c
@@ -1,3 +1,3 @@
1#define PCMCIA 1 1#define AHA152X_PCMCIA 1
2#define AHA152X_STAT 1 2#define AHA152X_STAT 1
3#include "aha152x.c" 3#include "aha152x.c"