projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23ea379
)
PCI: Skip id checking if no id is passed
author
Yinghai Lu
<yinghai@kernel.org>
Wed, 17 Nov 2010 20:10:40 +0000
(12:10 -0800)
committer
Jesse Barnes
<jbarnes@virtuousgeek.org>
Thu, 23 Dec 2010 20:53:10 +0000
(12:53 -0800)
Will get warning when pci stub driver is built-in kenel like:
pci-stub: invalid id string ""
So stop early if no id is passed.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci-stub.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/pci-stub.c
b/drivers/pci/pci-stub.c
index f7b68ca6cc98301d0d4d13bdc43d7af8be6f1ab4..4c0336b31cafb5fa3b0c00d51b9f7ab03bbb5c8c 100644
(file)
--- a/
drivers/pci/pci-stub.c
+++ b/
drivers/pci/pci-stub.c
@@
-47,6
+47,10
@@
static int __init pci_stub_init(void)
if (rc)
return rc;
+ /* no ids passed actually */
+ if (ids[0] == '\0')
+ return 0;
+
/* add ids specified in the module parameter */
p = ids;
while ((id = strsep(&p, ","))) {