diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-11-14 09:52:33 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-12-07 15:33:59 +0100 |
commit | b76b1e8a7856719c187bef2d2c329635a730b9c9 (patch) | |
tree | e583f4092963713ceed59f8908bf7c75de55f7f7 /net | |
parent | 1546948231677ad1e5acb83e7c60270f5ac28127 (diff) | |
download | barebox-b76b1e8a7856719c187bef2d2c329635a730b9c9.tar.gz |
of: Add .of suffix to device names from devicetree
Previous implementation used to add a number to the device names
for devices registered from the device tree which did not have a 'reg'
property, thus a device node named "state" resulted in a device name
"state.<x>". Current implementation skips that number and we get a
device named "state". This conflicts with our barebox state
implementation which tries to register a device named "state" itself.
We could rename the state device nodes of all our device trees, but it
causes less trouble to rename the devices.
This adds a ".of" suffix to the device names for devices registered from
the device tree which also has the nice effect that they now can easily
be recognized.
Fixes: 7e497d48acbd11 ("of: Port latest of_device_make_bus_id() implementation")
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Jan Lübbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions