]> asedeno.scripts.mit.edu Git - linux.git/commit
of: Don't create device for OPP tables
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 17 Apr 2018 06:27:34 +0000 (11:57 +0530)
committerRob Herring <robh@kernel.org>
Tue, 24 Apr 2018 13:04:04 +0000 (08:04 -0500)
commit4550fe6370ab01f6b1dff97ceffc284d1f38e70c
treee59baa4f4593e284985e0db65f6fff83b0932ea1
parent304a39b4bc94525b357083d44d766ff318f208e0
of: Don't create device for OPP tables

The OPP tables are present as separate nodes, whose phandle is used in
the "operating-points-v2" property of devices. Currently the OF core
creates a device for the OPP table unconditionally, which is not used by
any kernel code.

This patch creates another OF device_id table for the nodes which must
be skipped while creating devices and OPP is the only user of it for now.

Reported-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/platform.c