staging: sm750fb: remove hw_sm750_getVMSize function
authorMike Rapoport <mike.rapoport@gmail.com>
Mon, 26 Oct 2015 07:06:00 +0000 (09:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 08:04:57 +0000 (17:04 +0900)
The hw_sm750_getVMSize wraps ddk750_getVMSize without any added
functionality. Call ddk750_getVMSize directly and remove
hw_sm750_getVMSize.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.h
drivers/staging/sm750fb/sm750_hw.c

index fde125905671b84782fd378006155ce8eaa0f5e2..e9ddf2bec79bcbbc518ce30ad3cbe2cd1ddb6526 100644 (file)
@@ -202,7 +202,6 @@ void hw_sm750_initAccel(struct lynx_share *);
 int hw_sm750_deWait(void);
 int hw_sm750le_deWait(void);
 
-resource_size_t hw_sm750_getVMSize(struct lynx_share *);
 int hw_sm750_output_setMode(struct lynxfb_output*, struct fb_var_screeninfo*,
                            struct fb_fix_screeninfo*);
 int hw_sm750_crtc_checkMode(struct lynxfb_crtc*, struct fb_var_screeninfo*);
index 3ad82c2fe7dc9ff6d0c2649405568199e970e5e6..80cb7fe7bbd75ead497ff539ca8bb4f786e83d8a 100644 (file)
@@ -69,9 +69,9 @@ int hw_sm750_map(struct lynx_share *share, struct pci_dev *pdev)
        /* don't use pdev_resource[x].end - resource[x].start to
         * calculate the resource size,its only the maximum available
         * size but not the actual size,use
-        * @hw_sm750_getVMSize function can be safe.
+        * @ddk750_getVMSize function can be safe.
         * */
-       share->vidmem_size = hw_sm750_getVMSize(share);
+       share->vidmem_size = ddk750_getVMSize();
        pr_info("video memory phyAddr = %lx, size = %u bytes\n",
        share->vidmem_start, share->vidmem_size);
 
@@ -180,15 +180,6 @@ int hw_sm750_inithw(struct lynx_share *share, struct pci_dev *pdev)
        return 0;
 }
 
-
-resource_size_t hw_sm750_getVMSize(struct lynx_share *share)
-{
-       resource_size_t ret;
-
-       ret = ddk750_getVMSize();
-       return ret;
-}
-
 int hw_sm750_output_setMode(struct lynxfb_output *output,
                                                                        struct fb_var_screeninfo *var, struct fb_fix_screeninfo *fix)
 {