@@ -952,15 +952,15 @@ static phys_addr_t hvfb_get_phymem(struct hv_device *hdev,
952
952
}
953
953
954
954
/* Release contiguous physical memory */
955
- static void hvfb_release_phymem (struct hv_device * hdev ,
955
+ static void hvfb_release_phymem (struct device * device ,
956
956
phys_addr_t paddr , unsigned int size )
957
957
{
958
958
unsigned int order = get_order (size );
959
959
960
960
if (order <= MAX_PAGE_ORDER )
961
961
__free_pages (pfn_to_page (paddr >> PAGE_SHIFT ), order );
962
962
else
963
- dma_free_coherent (& hdev -> device ,
963
+ dma_free_coherent (device ,
964
964
round_up (size , PAGE_SIZE ),
965
965
phys_to_virt (paddr ),
966
966
paddr );
@@ -1080,7 +1080,7 @@ static int hvfb_getmem(struct hv_device *hdev, struct fb_info *info)
1080
1080
}
1081
1081
1082
1082
/* Release the framebuffer */
1083
- static void hvfb_putmem (struct hv_device * hdev , struct fb_info * info )
1083
+ static void hvfb_putmem (struct fb_info * info )
1084
1084
{
1085
1085
struct hvfb_par * par = info -> par ;
1086
1086
@@ -1089,7 +1089,7 @@ static void hvfb_putmem(struct hv_device *hdev, struct fb_info *info)
1089
1089
iounmap (par -> mmio_vp );
1090
1090
vmbus_free_mmio (par -> mem -> start , screen_fb_size );
1091
1091
} else {
1092
- hvfb_release_phymem (hdev , info -> fix .smem_start ,
1092
+ hvfb_release_phymem (info -> device , info -> fix .smem_start ,
1093
1093
screen_fb_size );
1094
1094
}
1095
1095
@@ -1203,7 +1203,7 @@ static int hvfb_probe(struct hv_device *hdev,
1203
1203
1204
1204
error :
1205
1205
fb_deferred_io_cleanup (info );
1206
- hvfb_putmem (hdev , info );
1206
+ hvfb_putmem (info );
1207
1207
error2 :
1208
1208
vmbus_close (hdev -> channel );
1209
1209
error1 :
@@ -1232,7 +1232,7 @@ static void hvfb_remove(struct hv_device *hdev)
1232
1232
vmbus_close (hdev -> channel );
1233
1233
hv_set_drvdata (hdev , NULL );
1234
1234
1235
- hvfb_putmem (hdev , info );
1235
+ hvfb_putmem (info );
1236
1236
framebuffer_release (info );
1237
1237
}
1238
1238
0 commit comments