]> xenbits.xensource.com Git - people/julieng/linux-arm.git/commitdiff
input: silence i8042 noise
authorPeter Jones <pjones@redhat.com>
Thu, 25 Sep 2008 20:23:33 +0000 (16:23 -0400)
committerJulien Grall <julien.grall@citrix.com>
Fri, 18 Sep 2015 15:29:26 +0000 (16:29 +0100)
Don't print an error message just because there's no i8042 chip.
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.

Bugzilla: N/A
Upstream-status: Fedora mustard

drivers/base/power/main.c
drivers/input/serio/i8042.c
net/can/af_can.c

index 30b7bbfdc5588d000dfc79d02ee53b0a886302e3..95863902627f0d425d29c183b12df040c8ba2bf2 100644 (file)
@@ -123,8 +123,6 @@ void device_pm_unlock(void)
  */
 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",
index cb5ece77fd7d8c47f29db0400da5184de0939644..4022b75eaad78c7afc1d5281c3a479daf378f53e 100644 (file)
@@ -871,7 +871,6 @@ static int __init i8042_check_aux(void)
 static int i8042_controller_check(void)
 {
        if (i8042_flush()) {
-               pr_err("No controller found\n");
                return -ENODEV;
        }
 
index 166d436196c14480184859e2bcaadeb7c5514f3a..0a081f53fafffc0d8680a301326401e12c23431e 100644 (file)
@@ -157,13 +157,9 @@ static int can_create(struct net *net, struct socket *sock, int protocol,
                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
+                * In case of error we but don't return the error code immediately.
+                * Below we will return -EPROTONOSUPPORT
                 */
-               if (err)
-                       printk_ratelimited(KERN_ERR "can: request_module "
-                              "(can-proto-%d) failed.\n", protocol);
 
                cp = can_get_proto(protocol);
        }