of/unittest: Show broken behaviour in the platform bus
authorGrant Likely <grant.likely@linaro.org>
Mon, 4 Jan 2016 12:13:21 +0000 (13:13 +0100)
committerRob Herring <robh@kernel.org>
Tue, 5 Jan 2016 15:20:40 +0000 (09:20 -0600)
commitd2329fb576d2c7eb0824028d9c6d3d48fb90b11a
tree7a5393b23f6c1d830b142c8b3e7d77ad304d06a3
parentfcd71d9cc6e301bdbd71829b79e80168473ca609
of/unittest: Show broken behaviour in the platform bus

Add a single resource to the test bus device to exercise the platform
bus code a little more. This isn't strictly a devicetree test, but it is
a corner case that the devicetree runs into. Until we've got platform
device unittests, it can live here. It doesn't need to be an explicit
text because the kernel will oops when it is wrong.

Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Cc: Rob Herring <robh@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
[wsa: added the comment provided by Grant, rebased, and tested]
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/unittest.c