diff options
Diffstat (limited to 'drivers/net/mace.c')
-rw-r--r-- | drivers/net/mace.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/mace.c b/drivers/net/mace.c index 81d0a26e4f41..2a5add257b8f 100644 --- a/drivers/net/mace.c +++ b/drivers/net/mace.c | |||
@@ -1016,6 +1016,7 @@ static struct of_device_id mace_match[] = | |||
1016 | }, | 1016 | }, |
1017 | {}, | 1017 | {}, |
1018 | }; | 1018 | }; |
1019 | MODULE_DEVICE_TABLE (of, mace_match); | ||
1019 | 1020 | ||
1020 | static struct macio_driver mace_driver = | 1021 | static struct macio_driver mace_driver = |
1021 | { | 1022 | { |
@@ -1035,10 +1036,8 @@ static void __exit mace_cleanup(void) | |||
1035 | { | 1036 | { |
1036 | macio_unregister_driver(&mace_driver); | 1037 | macio_unregister_driver(&mace_driver); |
1037 | 1038 | ||
1038 | if (dummy_buf) { | 1039 | kfree(dummy_buf); |
1039 | kfree(dummy_buf); | 1040 | dummy_buf = NULL; |
1040 | dummy_buf = NULL; | ||
1041 | } | ||
1042 | } | 1041 | } |
1043 | 1042 | ||
1044 | MODULE_AUTHOR("Paul Mackerras"); | 1043 | MODULE_AUTHOR("Paul Mackerras"); |