staging: sm7xxfb: remove unused functions
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 23 Apr 2015 13:38:17 +0000 (19:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 May 2015 07:24:12 +0000 (09:24 +0200)
removed the smtc_alloc_fb_info() and smtc_free_fb_info() functions which
were not used anymore.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm7xxfb/sm7xxfb.c

index 27f339fe483d1bf3ad3444732a5a61ea388296ea..5db26f16569c3440e59e8b5bceeb26e5e48a78d9 100644 (file)
@@ -674,38 +674,6 @@ static struct fb_ops smtcfb_ops = {
 #endif
 };
 
-/*
- * alloc struct smtcfb_info and assign default values
- */
-static struct smtcfb_info *smtc_alloc_fb_info(struct pci_dev *pdev)
-{
-       struct smtcfb_info *sfb;
-
-       sfb = kzalloc(sizeof(*sfb), GFP_KERNEL);
-
-       if (!sfb)
-               return NULL;
-
-       sfb->pdev = pdev;
-
-       sfb->fb->flags          = FBINFO_FLAG_DEFAULT;
-       sfb->fb->fbops          = &smtcfb_ops;
-       sfb->fb->fix            = smtcfb_fix;
-       sfb->fb->var            = smtcfb_var;
-       sfb->fb->pseudo_palette = sfb->colreg;
-       sfb->fb->par            = sfb;
-
-       return sfb;
-}
-
-/*
- * free struct smtcfb_info
- */
-static void smtc_free_fb_info(struct smtcfb_info *sfb)
-{
-       kfree(sfb);
-}
-
 /*
  * Unmap in the memory mapped IO registers
  */