X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=drivers%2Fnet%2Fmace.c;h=2a5add257b8f32fab854367946d0eccef51e1591;hb=232a347a444e687b5f8cf0f6485704db1c6024d3;hp=81d0a26e4f41c00662f5984469b3fad209b96d67;hpb=c101f3136cc98a003d0d16be6fab7d0d950581a6;p=linux-2.6-omap-h63xx.git diff --git a/drivers/net/mace.c b/drivers/net/mace.c index 81d0a26e4f4..2a5add257b8 100644 --- a/drivers/net/mace.c +++ b/drivers/net/mace.c @@ -1016,6 +1016,7 @@ static struct of_device_id mace_match[] = }, {}, }; +MODULE_DEVICE_TABLE (of, mace_match); static struct macio_driver mace_driver = { @@ -1035,10 +1036,8 @@ static void __exit mace_cleanup(void) { macio_unregister_driver(&mace_driver); - if (dummy_buf) { - kfree(dummy_buf); - dummy_buf = NULL; - } + kfree(dummy_buf); + dummy_buf = NULL; } MODULE_AUTHOR("Paul Mackerras");