From patchwork Tue Jul 7 08:14:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 6730951 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 C66269F749 for ; Tue, 7 Jul 2015 08:15:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0B3E620732 for ; Tue, 7 Jul 2015 08:15:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8AE3920734 for ; Tue, 7 Jul 2015 08:15:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756366AbbGGIPD (ORCPT ); Tue, 7 Jul 2015 04:15:03 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:34872 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756338AbbGGIPA (ORCPT ); Tue, 7 Jul 2015 04:15:00 -0400 Received: by pactm7 with SMTP id tm7so109454594pac.2; Tue, 07 Jul 2015 01:15: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=dOlar3a4/l1D93364jfpa4u+8Dae0+UyU0XU9Geqz6M=; b=YDyJiT4vMyeTZ++Ky51tHo3KXGup/NxAUcK7iFEOPrMB2ScC1EGH0qbFr1JOAjXnJK k2aPTMktWDDA2EopHLVWUl2sP93A0Ogd0PiYCGSPROfhRJ6fugFFoFALLOcu1ty4AuqP cbjvKPUNpx9kcNC3Sq4bOLk74INwuLZSmxo01R4lcaI6/i5Z5YrFow+mPVTP7SfHtnaJ 4ZUDt3Z2ca7+Z7Dzvxi74Rzid2J9Njceou/8Yn65S8UqPfPFZTVFwmBLfk8I7W7egPSZ O7/pF0hHDsyTEMTL3KcMBlrOlGxGuJUSPKdOOagDX8EA4kutVoLHVU2owCM4M8fiXkhM 0Stg== X-Received: by 10.70.38.170 with SMTP id h10mr6407929pdk.20.1436256900061; Tue, 07 Jul 2015 01:15:00 -0700 (PDT) Received: from localhost.localdomain ([49.206.254.91]) by mx.google.com with ESMTPSA id wm8sm20823418pbc.19.2015.07.07.01.14.57 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Jul 2015 01:14:59 -0700 (PDT) From: Sudip Mukherjee To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, Dan Carpenter , Sudip Mukherjee Subject: [PATCH 3/5] staging: sm7xxfb: use kernel commandline Date: Tue, 7 Jul 2015 13:44:35 +0530 Message-Id: <1436256877-10754-4-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1436256877-10754-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1436256877-10754-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=-7.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 We were only using the kernel commandline to set the mode if this driver is builtin, but when it is built as a module we were not having any way to set the mode. Start using commandline even if it is built as a module. Signed-off-by: Sudip Mukherjee --- drivers/staging/sm7xxfb/sm7xxfb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c b/drivers/staging/sm7xxfb/sm7xxfb.c index 8fb62af..4dc9d5f 100644 --- a/drivers/staging/sm7xxfb/sm7xxfb.c +++ b/drivers/staging/sm7xxfb/sm7xxfb.c @@ -1660,14 +1660,12 @@ static struct pci_driver smtcfb_driver = { static int __init sm712fb_init(void) { -#ifndef MODULE char *option = NULL; if (fb_get_options("sm712fb", &option)) return -ENODEV; if (option && *option) mode_option = option; -#endif sm7xx_vga_setup(mode_option); return pci_register_driver(&smtcfb_driver);