mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
block: partition: introduce hd_free_part()
So the helper can be used in both generic partition case and part0 case. Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
21bdb584af
commit
b54e5ed8f2
3 changed files with 8 additions and 4 deletions
|
|
@ -212,8 +212,7 @@ static void part_release(struct device *dev)
|
|||
{
|
||||
struct hd_struct *p = dev_to_part(dev);
|
||||
blk_free_devt(dev->devt);
|
||||
free_part_stats(p);
|
||||
free_part_info(p);
|
||||
hd_free_part(p);
|
||||
kfree(p);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue