diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-01-29 13:47:31 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-01-29 13:47:31 -0500 |
commit | 1c7385dbf8c55d0866172fdf70320c8f11b1ac15 (patch) | |
tree | 0581f09281e33a58577824440a1df8b6ed21c44c | |
parent | 1a9a126b5098160ca934a352617e9e65dbfa679d (diff) | |
parent | 846583ce151644b8538ca6cdf3f0857a80787649 (diff) |
Merge tag 'pnp-4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull PNP updates from Rafael Wysocki:
"These make pnpbios_thread_init() use PTR_ERR_OR_ZERO() and remove an
unnecessary kallsyms include from drivers/pnp/quirks.c (Vasyl
Gomonovych, Sergey Senozhatsky)"
* tag 'pnp-4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
PNP: pnpbios: Use PTR_ERR_OR_ZERO()
PNP: remove unneeded kallsyms include
-rw-r--r-- | drivers/pnp/pnpbios/core.c | 5 | ||||
-rw-r--r-- | drivers/pnp/quirks.c | 1 |
2 files changed, 1 insertions, 5 deletions
diff --git a/drivers/pnp/pnpbios/core.c b/drivers/pnp/pnpbios/core.c index e681140b85d8..077f334fdbae 100644 --- a/drivers/pnp/pnpbios/core.c +++ b/drivers/pnp/pnpbios/core.c | |||
@@ -581,10 +581,7 @@ static int __init pnpbios_thread_init(void) | |||
581 | 581 | ||
582 | init_completion(&unload_sem); | 582 | init_completion(&unload_sem); |
583 | task = kthread_run(pnp_dock_thread, NULL, "kpnpbiosd"); | 583 | task = kthread_run(pnp_dock_thread, NULL, "kpnpbiosd"); |
584 | if (IS_ERR(task)) | 584 | return PTR_ERR_OR_ZERO(task); |
585 | return PTR_ERR(task); | ||
586 | |||
587 | return 0; | ||
588 | } | 585 | } |
589 | 586 | ||
590 | /* Start the kernel thread later: */ | 587 | /* Start the kernel thread later: */ |
diff --git a/drivers/pnp/quirks.c b/drivers/pnp/quirks.c index f054cdddfef8..803666ae3635 100644 --- a/drivers/pnp/quirks.c +++ b/drivers/pnp/quirks.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <linux/slab.h> | 21 | #include <linux/slab.h> |
22 | #include <linux/pnp.h> | 22 | #include <linux/pnp.h> |
23 | #include <linux/io.h> | 23 | #include <linux/io.h> |
24 | #include <linux/kallsyms.h> | ||
25 | #include "base.h" | 24 | #include "base.h" |
26 | 25 | ||
27 | static void quirk_awe32_add_ports(struct pnp_dev *dev, | 26 | static void quirk_awe32_add_ports(struct pnp_dev *dev, |