Commit 9becd657 authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] check misc_register result in efirtc

parent fb20b647
......@@ -375,9 +375,14 @@ efi_rtc_read_proc(char *page, char **start, off_t off,
static int __init
efi_rtc_init(void)
{
int ret =0;
printk(KERN_INFO "EFI Time Services Driver v%s\n", EFI_RTC_VERSION);
misc_register(&efi_rtc_dev);
ret = misc_register(&efi_rtc_dev);
if (ret) {
printk(KERN_ERR "driver/efirtc: can't misc_register on minor=%d\n", EFI_RTC_MINOR);
return ret;
}
create_proc_read_entry ("driver/efirtc", 0, NULL, efi_rtc_read_proc, NULL);
......
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