Commit dda2dd2
committed
power: reset: macsmc-reboot: Prevent probing without of_node
MFD will probe sub devices declared with MFD_CELL_OF() even without
match on the device tree compatible. macsmc-reboot depends on nvmem
provided via device tree. Fail probe() with -ENODEV if this information
is missing.
Signed-off-by: Janne Grunau <j@jannau.net>1 parent 71f9f64 commit dda2dd2
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
208 | 216 | | |
209 | 217 | | |
210 | 218 | | |
| |||
0 commit comments