Commit e31dac3
block: rbd: switch to dynamic root device
Driver core expects devices to be dynamically allocated and will, for
example, complain loudly when no release function has been provided.
Use root_device_register() to allocate and register the root device
instead of open coding using a static device.
Signed-off-by: Johan Hovold <[email protected]>1 parent 857ada9 commit e31dac3
1 file changed
Lines changed: 7 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
| 583 | + | |
591 | 584 | | |
592 | 585 | | |
593 | 586 | | |
| |||
5390 | 5383 | | |
5391 | 5384 | | |
5392 | 5385 | | |
5393 | | - | |
| 5386 | + | |
5394 | 5387 | | |
5395 | 5388 | | |
5396 | 5389 | | |
| |||
7331 | 7324 | | |
7332 | 7325 | | |
7333 | 7326 | | |
7334 | | - | |
7335 | | - | |
7336 | | - | |
7337 | | - | |
7338 | | - | |
| 7327 | + | |
| 7328 | + | |
| 7329 | + | |
7339 | 7330 | | |
7340 | 7331 | | |
7341 | 7332 | | |
7342 | | - | |
| 7333 | + | |
7343 | 7334 | | |
7344 | 7335 | | |
7345 | 7336 | | |
7346 | 7337 | | |
7347 | 7338 | | |
7348 | 7339 | | |
7349 | 7340 | | |
7350 | | - | |
| 7341 | + | |
7351 | 7342 | | |
7352 | 7343 | | |
7353 | 7344 | | |
| |||
0 commit comments