diff options
Diffstat (limited to 'gpio/gpio.c')
-rw-r--r-- | gpio/gpio.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gpio/gpio.c b/gpio/gpio.c index abecc1f..a7e544d 100644 --- a/gpio/gpio.c +++ b/gpio/gpio.c @@ -84,6 +84,7 @@ MODULE_VERSION("1.0.0"); struct drvr_data g_drvr_data; +#ifdef GPIO_TEST #define debug(code) if(code < 0) printk(#code " FAILE\n"); void gpio_test(void) { @@ -102,6 +103,7 @@ void gpio_test(void) msleep(1000); } +#endif /***************************************************************************** Description: @@ -136,7 +138,7 @@ int gpio_init(void) /* remove the lsb which indicates io memory */ g_drvr_data.mem_base -= 1; - printk("base addr %x\n", g_drvr_data.mem_base); + printk(KERN_INFO "%s: base addr %x\n", DRIVERNAME, g_drvr_data.mem_base); /* release reference to device */ pci_dev_put(pdev); @@ -154,7 +156,9 @@ int gpio_init(void) /* set the addrs in the i/o memory addr structure */ set_reg_addrs(g_drvr_data.mem_base); +#ifdef GPIO_TEST gpio_test(); +#endif goto Exit; |