Commit 3eb2ebcb authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Masahiro Yamada

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: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 310c7585
...@@ -269,7 +269,7 @@ static LIST_HEAD(aha152x_host_list); ...@@ -269,7 +269,7 @@ static LIST_HEAD(aha152x_host_list);
/* DEFINES */ /* DEFINES */
/* For PCMCIA cards, always use AUTOCONF */ /* For PCMCIA cards, always use AUTOCONF */
#if defined(PCMCIA) || defined(MODULE) #if defined(AHA152X_PCMCIA) || defined(MODULE)
#if !defined(AUTOCONF) #if !defined(AUTOCONF)
#define AUTOCONF #define AUTOCONF
#endif #endif
...@@ -297,7 +297,7 @@ CMD_INC_RESID(struct scsi_cmnd *cmd, int inc) ...@@ -297,7 +297,7 @@ CMD_INC_RESID(struct scsi_cmnd *cmd, int inc)
#define DELAY_DEFAULT 1000 #define DELAY_DEFAULT 1000
#if defined(PCMCIA) #if defined(AHA152X_PCMCIA)
#define IRQ_MIN 0 #define IRQ_MIN 0
#define IRQ_MAX 16 #define IRQ_MAX 16
#else #else
...@@ -328,7 +328,7 @@ MODULE_AUTHOR("Jürgen Fischer"); ...@@ -328,7 +328,7 @@ MODULE_AUTHOR("Jürgen Fischer");
MODULE_DESCRIPTION(AHA152X_REVID); MODULE_DESCRIPTION(AHA152X_REVID);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
#if !defined(PCMCIA) #if !defined(AHA152X_PCMCIA)
#if defined(MODULE) #if defined(MODULE)
static int io[] = {0, 0}; static int io[] = {0, 0};
module_param_hw_array(io, int, ioport, NULL, 0); module_param_hw_array(io, int, ioport, NULL, 0);
...@@ -391,7 +391,7 @@ static struct isapnp_device_id id_table[] = { ...@@ -391,7 +391,7 @@ static struct isapnp_device_id id_table[] = {
MODULE_DEVICE_TABLE(isapnp, id_table); MODULE_DEVICE_TABLE(isapnp, id_table);
#endif /* ISAPNP */ #endif /* ISAPNP */
#endif /* !PCMCIA */ #endif /* !AHA152X_PCMCIA */
static struct scsi_host_template aha152x_driver_template; static struct scsi_host_template aha152x_driver_template;
...@@ -863,7 +863,7 @@ void aha152x_release(struct Scsi_Host *shpnt) ...@@ -863,7 +863,7 @@ void aha152x_release(struct Scsi_Host *shpnt)
if (shpnt->irq) if (shpnt->irq)
free_irq(shpnt->irq, shpnt); free_irq(shpnt->irq, shpnt);
#if !defined(PCMCIA) #if !defined(AHA152X_PCMCIA)
if (shpnt->io_port) if (shpnt->io_port)
release_region(shpnt->io_port, IO_RANGE); release_region(shpnt->io_port, IO_RANGE);
#endif #endif
...@@ -2924,7 +2924,7 @@ static struct scsi_host_template aha152x_driver_template = { ...@@ -2924,7 +2924,7 @@ static struct scsi_host_template aha152x_driver_template = {
.slave_alloc = aha152x_adjust_queue, .slave_alloc = aha152x_adjust_queue,
}; };
#if !defined(PCMCIA) #if !defined(AHA152X_PCMCIA)
static int setup_count; static int setup_count;
static struct aha152x_setup setup[2]; static struct aha152x_setup setup[2];
...@@ -3392,4 +3392,4 @@ static int __init aha152x_setup(char *str) ...@@ -3392,4 +3392,4 @@ static int __init aha152x_setup(char *str)
__setup("aha152x=", aha152x_setup); __setup("aha152x=", aha152x_setup);
#endif #endif
#endif /* !PCMCIA */ #endif /* !AHA152X_PCMCIA */
#define PCMCIA 1 #define AHA152X_PCMCIA 1
#define AHA152X_STAT 1 #define AHA152X_STAT 1
#include "aha152x.c" #include "aha152x.c"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment