--- zzzz-none-000/linux-3.10.107/drivers/edac/cell_edac.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/edac/cell_edac.c 2021-02-04 17:41:59.000000000 +0000 @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -133,8 +134,7 @@ int j; u32 nr_pages; - for (np = NULL; - (np = of_find_node_by_name(np, "memory")) != NULL;) { + for_each_node_by_name(np, "memory") { struct resource r; /* We "know" that the Cell firmware only creates one entry @@ -162,6 +162,7 @@ csrow->first_page, nr_pages); break; } + of_node_put(np); } static int cell_edac_probe(struct platform_device *pdev) @@ -244,7 +245,6 @@ static struct platform_driver cell_edac_driver = { .driver = { .name = "cbe-mic", - .owner = THIS_MODULE, }, .probe = cell_edac_probe, .remove = cell_edac_remove,