Commit bf0d326f authored by Andrew Morton's avatar Andrew Morton Committed by Greg Kroah-Hartman

[PATCH] fix x86_64 build for sys_device_register rename

fix x86_64 build for sys_device_register rename
parent 3a540b9d
...@@ -448,7 +448,7 @@ static __init int mce_init_device(void) ...@@ -448,7 +448,7 @@ static __init int mce_init_device(void)
return -EIO; return -EIO;
err = sysdev_class_register(&mce_sysclass); err = sysdev_class_register(&mce_sysclass);
if (!err) if (!err)
err = sys_device_register(&device_mce); err = sysdev_register(&device_mce);
if (!err) { if (!err) {
/* could create per CPU objects, but is not worth it. */ /* could create per CPU objects, but is not worth it. */
sysdev_create_file(&device_mce, &attr_disabled_banks); sysdev_create_file(&device_mce, &attr_disabled_banks);
......
...@@ -788,7 +788,7 @@ static int time_init_device(void) ...@@ -788,7 +788,7 @@ static int time_init_device(void)
{ {
int error = sysdev_class_register(&pit_sysclass); int error = sysdev_class_register(&pit_sysclass);
if (!error) if (!error)
error = sys_device_register(&device_i8253); error = sysdev_register(&device_i8253);
return error; return error;
} }
......
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