[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1545206692-32183-1-git-send-email-peng.hao2@zte.com.cn>
Date: Wed, 19 Dec 2018 16:04:50 +0800
From: Peng Hao <peng.hao2@....com.cn>
To: gregkh@...uxfoundation.org, arnd@...db.de,
andy.shevchenko@...il.com
Cc: linux-kernel@...r.kernel.org, Peng Hao <peng.hao2@....com.cn>
Subject: [PATCH V5 1/3] misc/pvpanic: return 0 for empty body register function
Return 0 for empty body register function normally.
Signed-off-by: Peng Hao <peng.hao2@....com.cn>
---
v4 --> v5 : handle all typo "drvier/driver" in funtion name.
v3 --> v4 : use pcim* function instead of pci* function.
handle typo "drvier/driver" in funtion name.
v2 --> v3 : handle a uninitialized variable in some path.
v2 --> v1 : arch=sh don't support pci, adjust CONFIG_PCI macro.
v1 : QEMU community requires additional PCI devices to simulate PVPANIC devices
so that some architectures can not occupy precious less than 4G of memory
space.
drivers/misc/pvpanic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c
index 3150dc2..f84ed30 100644
--- a/drivers/misc/pvpanic.c
+++ b/drivers/misc/pvpanic.c
@@ -125,7 +125,7 @@ static void pvpanic_unregister_acpi_driver(void)
#else
static int pvpanic_register_acpi_driver(void)
{
- return -ENODEV;
+ return 0;
}
static void pvpanic_unregister_acpi_driver(void) {}
--
1.8.3.1
Powered by blists - more mailing lists