File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,10 @@ int drm_aux_bridge_register(struct device *parent)
58
58
adev -> id = ret ;
59
59
adev -> name = "aux_bridge" ;
60
60
adev -> dev .parent = parent ;
61
- adev -> dev .of_node = of_node_get (parent -> of_node );
62
61
adev -> dev .release = drm_aux_bridge_release ;
63
62
63
+ device_set_of_node_from_dev (& adev -> dev , parent );
64
+
64
65
ret = auxiliary_device_init (adev );
65
66
if (ret ) {
66
67
ida_free (& drm_aux_bridge_ida , adev -> id );
Original file line number Diff line number Diff line change @@ -2391,6 +2391,7 @@ static int tc_probe_bridge_endpoint(struct tc_data *tc)
2391
2391
if (tc -> pre_emphasis [0 ] < 0 || tc -> pre_emphasis [0 ] > 2 ||
2392
2392
tc -> pre_emphasis [1 ] < 0 || tc -> pre_emphasis [1 ] > 2 ) {
2393
2393
dev_err (dev , "Incorrect Pre-Emphasis setting, use either 0=0dB 1=3.5dB 2=6dB\n" );
2394
+ of_node_put (node );
2394
2395
return - EINVAL ;
2395
2396
}
2396
2397
}
You can’t perform that action at this time.
0 commit comments