From patchwork Sat Mar 28 09:03:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 6113501 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D89F29F32E for ; Sat, 28 Mar 2015 09:04:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 11DF22038E for ; Sat, 28 Mar 2015 09:04:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 13A4B20386 for ; Sat, 28 Mar 2015 09:04:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751280AbbC1JEP (ORCPT ); Sat, 28 Mar 2015 05:04:15 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:36713 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752618AbbC1JEB (ORCPT ); Sat, 28 Mar 2015 05:04:01 -0400 Received: by padcy3 with SMTP id cy3so118087905pad.3; Sat, 28 Mar 2015 02:04:00 -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=p4j8TTku55bC+FPrvLSuYlE878B4Mux1Zds5BwkNpJw=; b=sOm2vavI1w36o/stZFaKAhWC1GQjDrQXCRjdr7CqupA1bAalzQ2atRkRMZcQOIO7S6 ESHDzf/hhnHf5aAF5UUncC0Levs+7MBBNXbBa3ftwscJfyd+9AsIAFRmtano7+dlwFU4 YSm+U3sXMtl2gt9yen5OdWPCw5ZLwguoeYERJxSNdqyhvm+eIM5X6B6p6zhOowT6iXx1 qpJ+QszgHvIIaYFf17r3Nnb3MnB1jwtB4r+CHvBMfSfY7kbPOBnetdQAD8deYb8pYp23 pbRPN/yK+rdANU16EWQNviTL1odbQS6db9Z1x7SnAEROLT/epkbxlkAbYV9y2WsmE7gg pxkQ== X-Received: by 10.68.226.161 with SMTP id rt1mr41375130pbc.101.1427533440551; Sat, 28 Mar 2015 02:04:00 -0700 (PDT) Received: from localhost.localdomain ([122.169.136.248]) by mx.google.com with ESMTPSA id y5sm4428789pdh.21.2015.03.28.02.03.58 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 28 Mar 2015 02:04:00 -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: disable pci device Date: Sat, 28 Mar 2015 14:33:41 +0530 Message-Id: <1427533421-9751-2-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1427533421-9751-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1427533421-9751-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 disable the pci device when the module exits. Signed-off-by: Sudip Mukherjee --- drivers/staging/sm7xxfb/sm7xxfb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c b/drivers/staging/sm7xxfb/sm7xxfb.c index 149286e..77f51a0 100644 --- a/drivers/staging/sm7xxfb/sm7xxfb.c +++ b/drivers/staging/sm7xxfb/sm7xxfb.c @@ -943,6 +943,7 @@ static void smtcfb_pci_remove(struct pci_dev *pdev) unregister_framebuffer(&sfb->fb); smtc_free_fb_info(sfb); pci_release_region(pdev, 0); + pci_disable_device(pdev); } #ifdef CONFIG_PM