2010-07-29 23:46:31 +00:00
|
|
|
From: Peter Jones <pjones@redhat.com>
|
|
|
|
Date: Thu, 25 Sep 2008 16:23:33 -0400
|
2014-08-20 17:22:24 +00:00
|
|
|
Subject: [PATCH] input: silence i8042 noise
|
2010-07-29 23:46:31 +00:00
|
|
|
|
2014-08-20 17:22:24 +00:00
|
|
|
Don't print an error message just because there's no i8042 chip.
|
2010-07-29 23:46:31 +00:00
|
|
|
Some systems, such as EFI-based Apple systems, won't necessarily have an
|
|
|
|
i8042 to initialize. We shouldn't be printing an error message in this
|
|
|
|
case, since not detecting the chip is the correct behavior.
|
2014-08-20 17:22:24 +00:00
|
|
|
|
|
|
|
Bugzilla: N/A
|
|
|
|
Upstream-status: Fedora mustard
|
2010-07-29 23:46:31 +00:00
|
|
|
---
|
2014-08-20 17:22:24 +00:00
|
|
|
drivers/base/power/main.c | 2 --
|
|
|
|
drivers/input/serio/i8042.c | 1 -
|
|
|
|
net/can/af_can.c | 8 ++------
|
|
|
|
3 files changed, 2 insertions(+), 9 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
|
2015-06-26 13:33:38 +00:00
|
|
|
index 30b7bbfdc558..95863902627f 100644
|
2014-08-20 17:22:24 +00:00
|
|
|
--- a/drivers/base/power/main.c
|
|
|
|
+++ b/drivers/base/power/main.c
|
2015-06-26 13:33:38 +00:00
|
|
|
@@ -123,8 +123,6 @@ void device_pm_unlock(void)
|
2014-08-20 17:22:24 +00:00
|
|
|
*/
|
|
|
|
void device_pm_add(struct device *dev)
|
|
|
|
{
|
|
|
|
- pr_debug("PM: Adding info for %s:%s\n",
|
|
|
|
- dev->bus ? dev->bus->name : "No Bus", dev_name(dev));
|
|
|
|
mutex_lock(&dpm_list_mtx);
|
|
|
|
if (dev->parent && dev->parent->power.is_prepared)
|
|
|
|
dev_warn(dev, "parent %s should not be sleeping\n",
|
2010-07-29 23:46:31 +00:00
|
|
|
diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
|
2015-04-15 14:47:18 +00:00
|
|
|
index cb5ece77fd7d..4022b75eaad7 100644
|
2010-07-29 23:46:31 +00:00
|
|
|
--- a/drivers/input/serio/i8042.c
|
|
|
|
+++ b/drivers/input/serio/i8042.c
|
2015-01-21 14:50:33 +00:00
|
|
|
@@ -871,7 +871,6 @@ static int __init i8042_check_aux(void)
|
2010-07-29 23:46:31 +00:00
|
|
|
static int i8042_controller_check(void)
|
|
|
|
{
|
2013-11-01 12:46:47 +00:00
|
|
|
if (i8042_flush()) {
|
2011-01-10 16:05:09 +00:00
|
|
|
- pr_err("No controller found\n");
|
2010-07-29 23:46:31 +00:00
|
|
|
return -ENODEV;
|
2013-11-01 12:46:47 +00:00
|
|
|
}
|
|
|
|
|
2014-08-20 17:22:24 +00:00
|
|
|
diff --git a/net/can/af_can.c b/net/can/af_can.c
|
2015-06-26 13:33:38 +00:00
|
|
|
index 7933e62a7318..96a911003af7 100644
|
2011-05-30 11:23:14 +00:00
|
|
|
--- a/net/can/af_can.c
|
|
|
|
+++ b/net/can/af_can.c
|
2015-01-05 21:09:49 +00:00
|
|
|
@@ -155,13 +155,9 @@ static int can_create(struct net *net, struct socket *sock, int protocol,
|
2010-07-29 23:46:31 +00:00
|
|
|
err = request_module("can-proto-%d", protocol);
|
|
|
|
|
|
|
|
/*
|
|
|
|
- * In case of error we only print a message but don't
|
|
|
|
- * return the error code immediately. Below we will
|
|
|
|
- * return -EPROTONOSUPPORT
|
2011-05-30 11:23:14 +00:00
|
|
|
+ * In case of error we but don't return the error code immediately.
|
2010-07-29 23:46:31 +00:00
|
|
|
+ * Below we will return -EPROTONOSUPPORT
|
|
|
|
*/
|
2011-07-25 02:26:26 +00:00
|
|
|
- if (err)
|
|
|
|
- printk_ratelimited(KERN_ERR "can: request_module "
|
2010-07-29 23:46:31 +00:00
|
|
|
- "(can-proto-%d) failed.\n", protocol);
|
2011-05-30 11:23:14 +00:00
|
|
|
|
|
|
|
cp = can_get_proto(protocol);
|
2010-07-29 23:46:31 +00:00
|
|
|
}
|