提交 7d16b658 编写于 作者: D Dominik Brodowski

pcmcia: don't add extra DEBUG cflag

Use CONFIG_PCMCIA_DEBUG instead of DEBUG so that dev_dbg() and other tricks
work properly.

(includes bugfixes from and
Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
)
Signed-off-by: NDominik Broodwski <linux@dominikbrodowski.net>
上级 2bccc2a8
...@@ -2,10 +2,6 @@ ...@@ -2,10 +2,6 @@
# Makefile for the kernel pcmcia subsystem (c/o David Hinds) # Makefile for the kernel pcmcia subsystem (c/o David Hinds)
# #
ifeq ($(CONFIG_PCMCIA_DEBUG),y)
EXTRA_CFLAGS += -DDEBUG
endif
pcmcia_core-y += cs.o cistpl.o rsrc_mgr.o socket_sysfs.o pcmcia_core-y += cs.o cistpl.o rsrc_mgr.o socket_sysfs.o
pcmcia_core-$(CONFIG_CARDBUS) += cardbus.o pcmcia_core-$(CONFIG_CARDBUS) += cardbus.o
obj-$(CONFIG_PCCARD) += pcmcia_core.o obj-$(CONFIG_PCCARD) += pcmcia_core.o
......
...@@ -61,7 +61,7 @@ INT_MODULE_PARM(unreset_limit, 30); /* unreset_check's */ ...@@ -61,7 +61,7 @@ INT_MODULE_PARM(unreset_limit, 30); /* unreset_check's */
/* Access speed for attribute memory windows */ /* Access speed for attribute memory windows */
INT_MODULE_PARM(cis_speed, 300); /* ns */ INT_MODULE_PARM(cis_speed, 300); /* ns */
#ifdef DEBUG #ifdef CONFIG_PCMCIA_DEBUG
static int pc_debug; static int pc_debug;
module_param(pc_debug, int, 0644); module_param(pc_debug, int, 0644);
......
...@@ -130,7 +130,7 @@ struct pcmcia_callback{ ...@@ -130,7 +130,7 @@ struct pcmcia_callback{
int pccard_register_pcmcia(struct pcmcia_socket *s, struct pcmcia_callback *c); int pccard_register_pcmcia(struct pcmcia_socket *s, struct pcmcia_callback *c);
#ifdef DEBUG #ifdef CONFIG_PCMCIA_DEBUG
extern int cs_debug_level(int); extern int cs_debug_level(int);
#define cs_dbg(skt, lvl, fmt, arg...) do { \ #define cs_dbg(skt, lvl, fmt, arg...) do { \
......
...@@ -42,7 +42,7 @@ MODULE_AUTHOR("David Hinds <dahinds@users.sourceforge.net>"); ...@@ -42,7 +42,7 @@ MODULE_AUTHOR("David Hinds <dahinds@users.sourceforge.net>");
MODULE_DESCRIPTION("PCMCIA Driver Services"); MODULE_DESCRIPTION("PCMCIA Driver Services");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
#ifdef DEBUG #ifdef CONFIG_PCMCIA_DEBUG
int ds_pc_debug; int ds_pc_debug;
module_param_named(pc_debug, ds_pc_debug, int, 0644); module_param_named(pc_debug, ds_pc_debug, int, 0644);
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
#include "vg468.h" #include "vg468.h"
#include "ricoh.h" #include "ricoh.h"
#ifdef DEBUG #ifdef CONFIG_PCMCIA_DEBUG
static const char version[] = static const char version[] =
"i82365.c 1.265 1999/11/10 18:36:21 (David Hinds)"; "i82365.c 1.265 1999/11/10 18:36:21 (David Hinds)";
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
#include "m32r_cfc.h" #include "m32r_cfc.h"
#ifdef DEBUG #ifdef CONFIG_PCMCIA_DEBUG
static int m32r_cfc_debug; static int m32r_cfc_debug;
module_param(m32r_cfc_debug, int, 0644); module_param(m32r_cfc_debug, int, 0644);
#define debug(lvl, fmt, arg...) do { \ #define debug(lvl, fmt, arg...) do { \
...@@ -505,7 +505,7 @@ static int _pcc_set_socket(u_short sock, socket_state_t *state) ...@@ -505,7 +505,7 @@ static int _pcc_set_socket(u_short sock, socket_state_t *state)
pcc_set(sock,(unsigned int)PLD_CFBUFCR,1); pcc_set(sock,(unsigned int)PLD_CFBUFCR,1);
} }
#ifdef DEBUG #ifdef CONFIG_PCMCIA_DEBUG
if(state->flags & SS_IOCARD){ if(state->flags & SS_IOCARD){
debug(3, ":IOCARD"); debug(3, ":IOCARD");
} }
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
#define PCC_DEBUG_DBEX #define PCC_DEBUG_DBEX
#ifdef DEBUG #ifdef CONFIG_PCMCIA_DEBUG
static int m32r_pcc_debug; static int m32r_pcc_debug;
module_param(m32r_pcc_debug, int, 0644); module_param(m32r_pcc_debug, int, 0644);
#define debug(lvl, fmt, arg...) do { \ #define debug(lvl, fmt, arg...) do { \
...@@ -460,7 +460,7 @@ static int _pcc_set_socket(u_short sock, socket_state_t *state) ...@@ -460,7 +460,7 @@ static int _pcc_set_socket(u_short sock, socket_state_t *state)
pcc_set(sock,PCCSIGCR,reg); pcc_set(sock,PCCSIGCR,reg);
#ifdef DEBUG #ifdef CONFIG_PCMCIA_DEBUG
if(state->flags & SS_IOCARD){ if(state->flags & SS_IOCARD){
debug(3, ":IOCARD"); debug(3, ":IOCARD");
} }
......
...@@ -64,8 +64,8 @@ ...@@ -64,8 +64,8 @@
#include <pcmcia/cs.h> #include <pcmcia/cs.h>
#include <pcmcia/ss.h> #include <pcmcia/ss.h>
#ifdef PCMCIA_DEBUG #ifdef CONFIG_PCMCIA_DEBUG
static int pc_debug = PCMCIA_DEBUG; static int pc_debug;
module_param(pc_debug, int, 0); module_param(pc_debug, int, 0);
#define dprintk(args...) printk(KERN_DEBUG "m8xx_pcmcia: " args); #define dprintk(args...) printk(KERN_DEBUG "m8xx_pcmcia: " args);
#else #else
......
...@@ -58,7 +58,7 @@ typedef struct user_info_t { ...@@ -58,7 +58,7 @@ typedef struct user_info_t {
} user_info_t; } user_info_t;
#ifdef DEBUG #ifdef CONFIG_PCMCIA_DEBUG
extern int ds_pc_debug; extern int ds_pc_debug;
#define ds_dbg(lvl, fmt, arg...) do { \ #define ds_dbg(lvl, fmt, arg...) do { \
......
...@@ -44,7 +44,7 @@ static u8 pcmcia_used_irq[NR_IRQS]; ...@@ -44,7 +44,7 @@ static u8 pcmcia_used_irq[NR_IRQS];
#endif #endif
#ifdef DEBUG #ifdef CONFIG_PCMCIA_DEBUG
extern int ds_pc_debug; extern int ds_pc_debug;
#define ds_dbg(skt, lvl, fmt, arg...) do { \ #define ds_dbg(skt, lvl, fmt, arg...) do { \
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
#include <asm/arch/pxa-regs.h> #include <asm/arch/pxa-regs.h>
#endif #endif
#ifdef DEBUG #ifdef CONFIG_PCMCIA_DEBUG
static int pc_debug; static int pc_debug;
module_param(pc_debug, int, 0644); module_param(pc_debug, int, 0644);
......
...@@ -137,7 +137,7 @@ extern int soc_common_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_lev ...@@ -137,7 +137,7 @@ extern int soc_common_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_lev
extern int soc_common_drv_pcmcia_remove(struct device *dev); extern int soc_common_drv_pcmcia_remove(struct device *dev);
#ifdef DEBUG #ifdef CONFIG_PCMCIA_DEBUG
extern void soc_pcmcia_debug(struct soc_pcmcia_socket *skt, const char *func, extern void soc_pcmcia_debug(struct soc_pcmcia_socket *skt, const char *func,
int lvl, const char *fmt, ...); int lvl, const char *fmt, ...);
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
#include <pcmcia/ss.h> #include <pcmcia/ss.h>
#include "tcic.h" #include "tcic.h"
#ifdef DEBUG #ifdef CONFIG_PCMCIA_DEBUG
static int pc_debug; static int pc_debug;
module_param(pc_debug, int, 0644); module_param(pc_debug, int, 0644);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册