Commit c845933e authored by James Bottomley's avatar James Bottomley

mca-sysfs update to new bus_for_each_dev syntax

parent 876958f6
......@@ -461,7 +461,7 @@ void mca_handle_nmi(void)
/* First try - scan the various adapters and see if a specific
* adapter was responsible for the error.
*/
bus_for_each_dev(&mca_bus_type, NULL, mca_handle_nmi_callback);
bus_for_each_dev(&mca_bus_type, NULL, NULL, mca_handle_nmi_callback);
mca_nmi_hook();
} /* mca_handle_nmi */
......@@ -83,7 +83,7 @@ int mca_find_adapter(int id, int start)
info.mca_dev = NULL;
for(;;) {
bus_for_each_dev(&mca_bus_type, &info, mca_find_adapter_callback);
bus_for_each_dev(&mca_bus_type, NULL, &info, mca_find_adapter_callback);
if(info.mca_dev == NULL)
return MCA_NOTFOUND;
......@@ -131,7 +131,7 @@ int mca_find_unused_adapter(int id, int start)
info.mca_dev = NULL;
for(;;) {
bus_for_each_dev(&mca_bus_type, &info, mca_find_adapter_callback);
bus_for_each_dev(&mca_bus_type, NULL, &info, mca_find_adapter_callback);
if(info.mca_dev == NULL)
return MCA_NOTFOUND;
......@@ -176,7 +176,7 @@ struct mca_device *mca_find_device_by_slot(int slot)
info.slot = slot;
info.mca_dev = NULL;
bus_for_each_dev(&mca_bus_type, &info, mca_find_device_by_slot_callback);
bus_for_each_dev(&mca_bus_type, NULL, &info, mca_find_device_by_slot_callback);
return info.mca_dev;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment