To compile this driver as a module, choose M here.  The module
          will be called dm9000.
 
-config DM9000_DEBUGLEVEL
-       int "DM9000 maximum debug level"
-       depends on DM9000
-       default 4
-       ---help---
-         The maximum level of debugging code compiled into the DM9000
-         driver.
-
 config DM9000_FORCE_SIMPLE_PHY_POLL
        bool "Force simple NSR based PHY polling"
        depends on DM9000
 
 module_param(watchdog, int, 0400);
 MODULE_PARM_DESC(watchdog, "transmit timeout in milliseconds");
 
+/*
+ * Debug messages level
+ */
+static int debug;
+module_param(debug, int, 0644);
+MODULE_PARM_DESC(debug, "dm9000 debug level (0-4)");
+
 /* DM9000 register address locking.
  *
  * The DM9000 uses an address register to control where data written
        unsigned int    flags;
        unsigned int    in_suspend :1;
        unsigned int    wake_supported :1;
-       int             debug_level;
 
        enum dm9000_type type;
 
 /* debug code */
 
 #define dm9000_dbg(db, lev, msg...) do {               \
-       if ((lev) < CONFIG_DM9000_DEBUGLEVEL &&         \
-           (lev) < db->debug_level) {                  \
+       if ((lev) < debug) {                            \
                dev_dbg(db->dev, msg);                  \
        }                                               \
 } while (0)