Commit 6b684cd5 authored by Linus Torvalds's avatar Linus Torvalds
parents 1b7e7e6f d4065775
...@@ -201,11 +201,14 @@ static struct miscdevice fitpc2_wdt_miscdev = { ...@@ -201,11 +201,14 @@ static struct miscdevice fitpc2_wdt_miscdev = {
static int __init fitpc2_wdt_init(void) static int __init fitpc2_wdt_init(void)
{ {
int err; int err;
const char *brd_name;
if (!strstr(dmi_get_system_info(DMI_BOARD_NAME), "SBC-FITPC2")) brd_name = dmi_get_system_info(DMI_BOARD_NAME);
if (!brd_name || !strstr(brd_name, "SBC-FITPC2"))
return -ENODEV; return -ENODEV;
pr_info("%s found\n", dmi_get_system_info(DMI_BOARD_NAME)); pr_info("%s found\n", brd_name);
if (!request_region(COMMAND_PORT, 1, WATCHDOG_NAME)) { if (!request_region(COMMAND_PORT, 1, WATCHDOG_NAME)) {
pr_err("I/O address 0x%04x already in use\n", COMMAND_PORT); pr_err("I/O address 0x%04x already in use\n", COMMAND_PORT);
......
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