From patchwork Sat Mar 17 18:16:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Levitsky X-Patchwork-Id: 147341 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id AB8D5B6FB7 for ; Sun, 18 Mar 2012 05:18:48 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1S8yBm-00033U-Fi; Sat, 17 Mar 2012 18:17:14 +0000 Received: from mail-wi0-f177.google.com ([209.85.212.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1S8yBg-00033G-LC for linux-mtd@lists.infradead.org; Sat, 17 Mar 2012 18:17:09 +0000 Received: by wibhj13 with SMTP id hj13so1688216wib.0 for ; Sat, 17 Mar 2012 11:17:05 -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:x-mailer:in-reply-to:references; bh=YbTf8uEqDJWpZ/wFZqPhguxag/z1+MPrchhO3q0lp50=; b=cUNagl4MfueScyOw8vaK8IWJdDELeKxS1f4XsdkB4e1ZIMxlmvyG4SAvxxtnMOhF36 htgkapF3V2ZZubmoJJTVKcuO7MWYMeued93JaR41LBqv7LVG+gfyPH4O+LBBAWnSTJs5 6JOUZ5cIKcqLX2b/p88GTYCRicuKvOpkW7DucjpjsnridMdPm1RXVj1KLqXH30yMP5HK 7uyuWkOxIdcsm0UJ1hC0ulLJyDdZvF8B8Xwkq7xYpJMgLh2/YghQOwF0F6GePfQLMhWu t7zISMsTjE4DHy0k50MCJVLYR63tA4MJFdBjnf9e6EnQtgnMym/DLg5rgiFh0tq1CLai lNhw== Received: by 10.180.104.65 with SMTP id gc1mr7659727wib.13.1332008225818; Sat, 17 Mar 2012 11:17:05 -0700 (PDT) Received: from localhost.localdomain (87.68.247.11.adsl.012.net.il. [87.68.247.11]) by mx.google.com with ESMTPS id d7sm15579180wiz.6.2012.03.17.11.17.03 (version=SSLv3 cipher=OTHER); Sat, 17 Mar 2012 11:17:04 -0700 (PDT) From: Maxim Levitsky To: linux-mtd@lists.infradead.org Subject: [PATCH] mtd: sm_ftl: fix typo in major number. Date: Sat, 17 Mar 2012 20:16:53 +0200 Message-Id: <1332008213-3940-1-git-send-email-maximlevitsky@gmail.com> X-Mailer: git-send-email 1.7.9.1 In-Reply-To: <20120317175827.GB12111@agk-dp.fab.redhat.com> References: <20120317175827.GB12111@agk-dp.fab.redhat.com> X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (maximlevitsky[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.177 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Maxim Levitsky , John Mesmon , Alasdair G Kergon , LVM general discussion and development X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org major == 0 allocates dynamic major, not major == -1 Signed-off-by: Maxim Levitsky --- drivers/mtd/sm_ftl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/sm_ftl.c b/drivers/mtd/sm_ftl.c index 072ed59..9e2dfd5 100644 --- a/drivers/mtd/sm_ftl.c +++ b/drivers/mtd/sm_ftl.c @@ -1256,7 +1256,7 @@ static void sm_remove_dev(struct mtd_blktrans_dev *dev) static struct mtd_blktrans_ops sm_ftl_ops = { .name = "smblk", - .major = -1, + .major = 0, .part_bits = SM_FTL_PARTN_BITS, .blksize = SM_SECTOR_SIZE, .getgeo = sm_getgeo,