From patchwork Sat Sep 20 16:53:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 4942061 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 78949BEEA6 for ; Sat, 20 Sep 2014 16:54:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B2631201F7 for ; Sat, 20 Sep 2014 16:54:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CA7382016C for ; Sat, 20 Sep 2014 16:54:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756832AbaITQyl (ORCPT ); Sat, 20 Sep 2014 12:54:41 -0400 Received: from mail-we0-f181.google.com ([74.125.82.181]:56450 "EHLO mail-we0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756541AbaITQyl (ORCPT ); Sat, 20 Sep 2014 12:54:41 -0400 Received: by mail-we0-f181.google.com with SMTP id q59so1045886wes.26 for ; Sat, 20 Sep 2014 09:54:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Sh/atf5IPRbDf+NAlKlw7KzlxqXijn1aZoFBcYYzreM=; b=SugrTk4wC28zi/Sk7dHUy8xQoIL3BqznlLKoKs94JyTQjvokqLx1GEDNyLfUrQGjb7 XuztLXrRMKNlq2DRAluvDKB41SnEODIdo0WAEWNVM7Epr6QfF6yl0d4nXPHEcuLSD8Rh n+GsX0xmGf1XX4XE+SGa3+o38nYXOfohHDg4ObUrQ7ooWzIsXyWXPxykunxfxhF+TxMl uz4MavsekjMMRrnAds489/VThjsuyJsFhbf8ln/Zl6vsHRZLQPThtVDKZu4ss+J4UVEH xxSmseJyTr5BEu8VTque2O9fBHbsukZQjVCo7/PaEaYBpTGVmgQc+uocSfTqDs6Iewg+ BFNA== X-Gm-Message-State: ALoCoQli7NGpjJSyNVYeUAMeN+77Qs+5gP2OVDFsfb9LB4WpFHUFnK3IEfQqJIdu+edrFM08ZOwM X-Received: by 10.180.101.71 with SMTP id fe7mr4332070wib.48.1411232080081; Sat, 20 Sep 2014 09:54:40 -0700 (PDT) Received: from localhost.localdomain (88-96-238-14.dsl.zen.co.uk. [88.96.238.14]) by mx.google.com with ESMTPSA id s1sm5938925wiw.6.2014.09.20.09.54.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 20 Sep 2014 09:54:39 -0700 (PDT) From: Ezequiel Garcia To: Brian Norris , Roger Quadros Cc: , , Tony Lindgren , Ezequiel Garcia Subject: [PATCH v4 5/5] mtd: nand: Constrain omap_elm to built-in Date: Sat, 20 Sep 2014 17:53:16 +0100 Message-Id: <1411231996-6387-6-git-send-email-ezequiel@vanguardiasur.com.ar> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1411231996-6387-1-git-send-email-ezequiel@vanguardiasur.com.ar> References: <1411231996-6387-1-git-send-email-ezequiel@vanguardiasur.com.ar> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 This fixes the following build error when omap2_nand is chosen built-in, and omap_elm is chosen as a module: drivers/mtd/nand/omap2.c:2010: undefined reference to `elm_config' drivers/mtd/nand/omap2.c:1980: undefined reference to `elm_config' drivers/mtd/nand/omap2.c:1927: undefined reference to `elm_config' drivers/mtd/nand/omap2.c:1444: undefined reference to `elm_decode_bch_error_page' Fix this by making omap_elm a 'bool' driver. Signed-off-by: Ezequiel Garcia Acked-by: --- drivers/mtd/nand/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index f1cf503..549c0cb 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig @@ -96,7 +96,7 @@ config MTD_NAND_OMAP2 config MTD_NAND_OMAP_BCH depends on MTD_NAND_OMAP2 - tristate "Support hardware based BCH error correction" + bool "Support hardware based BCH error correction" default n select BCH help