forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/s390/cio/chp.c
....@@ -135,7 +135,7 @@
135135 struct channel_path *chp;
136136 struct device *device;
137137
138
- device = container_of(kobj, struct device, kobj);
138
+ device = kobj_to_dev(kobj);
139139 chp = to_channelpath(device);
140140 if (chp->cmg == -1)
141141 return 0;
....@@ -184,7 +184,7 @@
184184 struct device *device;
185185 unsigned int size;
186186
187
- device = container_of(kobj, struct device, kobj);
187
+ device = kobj_to_dev(kobj);
188188 chp = to_channelpath(device);
189189 css = to_css(chp->dev.parent);
190190