提交 39043a5b 编写于 作者: K Kumar Gala

[POWERPC] of_device_register: propagate device_create_file return code

Removed compiler warning about ignoring the return code of device_create_file
in of_device_register.
Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
上级 c9976797
......@@ -109,9 +109,7 @@ int of_device_register(struct of_device *ofdev)
if (rc)
return rc;
device_create_file(&ofdev->dev, &dev_attr_devspec);
return 0;
return device_create_file(&ofdev->dev, &dev_attr_devspec);
}
void of_device_unregister(struct of_device *ofdev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册