From patchwork Thu Apr 23 13:38:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 6262591 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4AC14BF4A6 for ; Thu, 23 Apr 2015 13:38:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 72A46202D1 for ; Thu, 23 Apr 2015 13:38:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 96F98202BE for ; Thu, 23 Apr 2015 13:38:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934067AbbDWNis (ORCPT ); Thu, 23 Apr 2015 09:38:48 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:34482 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933920AbbDWNib (ORCPT ); Thu, 23 Apr 2015 09:38:31 -0400 Received: by pacyx8 with SMTP id yx8so18479814pac.1; Thu, 23 Apr 2015 06:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zmbQIEjn+QVh/NEcWeZ6F1FSIHr4QrA7Va88jjApvg8=; b=tobKJOyrTqwrCKKLYU2vhRKBRX76KcDMDUiZ+D5YZBtZsodogFjXcf66ckBSFG8U5z rB9VbtePDeq2cxsTNkzqUvvoEZzgyMC9e69e4wtDockRaPZU7AAlOdfdBJf6rQw2HyMt uhZRWXYa14z79t0u42Pt8Kp+vvDDuAmDqIURiAUsD/uGX5OGrpWKM9NeaWtolQtvoio0 B5a5dfeDBHzbm4Bn3d+Rv4emufCRQR3ahD66psoiYmt8VtOYLKpjX7lm3Wi1NB8Ixf2G VjVz20RoiMuD2DI0Yb+bIxisfQwf3QIUVNdSdxpmlwSvdK994W9vooDJ5beR/nXM91Qd 9yIQ== X-Received: by 10.66.156.225 with SMTP id wh1mr5515934pab.100.1429796310539; Thu, 23 Apr 2015 06:38:30 -0700 (PDT) Received: from localhost.localdomain ([122.169.132.71]) by mx.google.com with ESMTPSA id mp3sm1452911pbc.8.2015.04.23.06.38.27 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Apr 2015 06:38:29 -0700 (PDT) From: Sudip Mukherjee To: Greg Kroah-Hartman Cc: linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Sudip Mukherjee Subject: [PATCH 2/2] staging: sm7xxfb: remove unused functions Date: Thu, 23 Apr 2015 19:08:17 +0530 Message-Id: <1429796297-11750-2-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1429796297-11750-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1429796297-11750-1-git-send-email-sudipm.mukherjee@gmail.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP removed the smtc_alloc_fb_info() and smtc_free_fb_info() functions which were not used anymore. Signed-off-by: Sudip Mukherjee --- drivers/staging/sm7xxfb/sm7xxfb.c | 32 -------------------------------- 1 file changed, 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 */