devargs: make bus optional
authorXueming Li <xuemingl@nvidia.com>
Wed, 20 Oct 2021 15:47:38 +0000 (23:47 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 21 Oct 2021 09:32:44 +0000 (11:32 +0200)
commit5adef306daccf741a0467015c5565f861b1da25b
treeecf05c435151c4c1ea70ad32848ad869ab95db34
parent9a1a9e4a2ddde3f6dfa30689b7ccee52ddb9be2e
devargs: make bus optional

Global devargs syntax is used as device iteration filter like
"class=vdpa", a devargs without bus args is valid from parsing
perspective.

This patch makes bus args optional.

Fixes: d2a66ad79480 ("bus: add device arguments name parsing")

Signed-off-by: Xueming Li <xuemingl@nvidia.com>
Reviewed-by: Gaetan Rivet <grive@u256.net>
drivers/bus/pci/pci_params.c
lib/eal/common/eal_common_devargs.c