]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/bmac.c
[PATCH] myri10ge - Drop unused pm_state
[linux-2.6-omap-h63xx.git] / drivers / net / bmac.c
index 60dba4a1ca5ce8d57081088c22d16eeb7a2ee8f6..6fad83f24c4f5d08880baecc266c3f9f2c2732b7 100644 (file)
@@ -7,7 +7,6 @@
  * May 1999, Al Viro: proper release of /proc/net/bmac entry, switched to
  * dynamic procfs inode.
  */
-#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/netdevice.h>
@@ -1658,6 +1657,7 @@ static struct of_device_id bmac_match[] =
        },
        {},
 };
+MODULE_DEVICE_TABLE (of, bmac_match);
 
 static struct macio_driver bmac_driver = 
 {
@@ -1689,10 +1689,8 @@ static void __exit bmac_exit(void)
 {
        macio_unregister_driver(&bmac_driver);
 
-       if (bmac_emergency_rxbuf != NULL) {
-               kfree(bmac_emergency_rxbuf);
-               bmac_emergency_rxbuf = NULL;
-       }
+       kfree(bmac_emergency_rxbuf);
+       bmac_emergency_rxbuf = NULL;
 }
 
 MODULE_AUTHOR("Randy Gobbel/Paul Mackerras");