Commit a48acad
net: marvell: prestera: Avoid unnecessary DT lookups
This driver fist makes an expensive DT lookup to retrieve its DT node
(this is a PCI driver) in order to later search for the
base-mac-provider property. This property has no reality upstream and
this code should not have been accepted like this in the first
place. Instead, there is a proper nvmem interface that should be
used. Let's avoid these extra lookups and rely on the nvmem internal
logic.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>1 parent 4c47867 commit a48acad
1 file changed
+4
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
858 | 858 | | |
859 | 859 | | |
860 | 860 | | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
| 861 | + | |
871 | 862 | | |
| 863 | + | |
| 864 | + | |
872 | 865 | | |
873 | 866 | | |
874 | 867 | | |
| |||
1372 | 1365 | | |
1373 | 1366 | | |
1374 | 1367 | | |
1375 | | - | |
| 1368 | + | |
1376 | 1369 | | |
1377 | 1370 | | |
1378 | 1371 | | |
| |||
0 commit comments