summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-04-23 13:38:17 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-08 07:24:12 (GMT)
commitd8496fb4939962445a10e370a23c81185f242900 (patch)
tree106f6d31f7a61d8abc6ae520e40da84b0fb7b088 /drivers
parentcd14ad8be7c521db39f031ab99393360eac553ce (diff)
downloadlinux-d8496fb4939962445a10e370a23c81185f242900.tar.xz
staging: sm7xxfb: remove unused functions
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/sm7xxfb/sm7xxfb.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c b/drivers/staging/sm7xxfb/sm7xxfb.c
index 27f339f..5db26f1 100644
--- a/drivers/staging/sm7xxfb/sm7xxfb.c
+++ b/drivers/staging/sm7xxfb/sm7xxfb.c
@@ -675,38 +675,6 @@ static struct fb_ops smtcfb_ops = {
};
/*
- * 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
*/