From patchwork Mon Oct 25 19:11:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Renninger X-Patchwork-Id: 267882 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9PJBo2X009892 for ; Mon, 25 Oct 2010 19:11:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751592Ab0JYTLr (ORCPT ); Mon, 25 Oct 2010 15:11:47 -0400 Received: from cantor2.suse.de ([195.135.220.15]:42371 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751208Ab0JYTLr (ORCPT ); Mon, 25 Oct 2010 15:11:47 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) by mx2.suse.de (Postfix) with ESMTP id A47E689471; Mon, 25 Oct 2010 21:11:46 +0200 (CEST) From: Thomas Renninger To: lenb@kernel.org, bjorn.helgaas@hp.com Cc: Thomas Renninger , linux-acpi@vger.kernel.org Subject: [PATCH 2/2] PNP: Set up pnp_debug via module and not via boot param. Date: Mon, 25 Oct 2010 21:11:16 +0200 Message-Id: <1288033876-22929-2-git-send-email-trenn@suse.de> X-Mailer: git-send-email 1.6.3 In-Reply-To: <1288033876-22929-1-git-send-email-trenn@suse.de> References: <1288033876-22929-1-git-send-email-trenn@suse.de> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 25 Oct 2010 19:11:50 +0000 (UTC) diff --git a/drivers/pnp/core.c b/drivers/pnp/core.c index 88b3cde..9801918 100644 --- a/drivers/pnp/core.c +++ b/drivers/pnp/core.c @@ -218,10 +218,5 @@ subsys_initcall(pnp_init); int pnp_debug; #if defined(CONFIG_PNP_DEBUG_MESSAGES) -static int __init pnp_debug_setup(char *__unused) -{ - pnp_debug = 1; - return 1; -} -__setup("pnp.debug", pnp_debug_setup); +module_param_named(debug, pnp_debug, int, 0644); #endif