From patchwork Wed May 17 05:39:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 763344 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wSNTP4Sbdz9s82 for ; Wed, 17 May 2017 15:40:57 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="B6J2zDvv"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="JXo9q1mc"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=B2sOjgLaSrA0SIdzVh7XoLUI+KCOUUWMeiroq+67pCg=; b=B6J2zDvvonrIP2ibtrC2mL85Re FurB54ZJ0sb2kZHxw8qRsq+xb1Txs9leRR/sESM+TvvOB4GCgD7GyxVuO7v/Y0KJsZQBtrzrcQDEl 85csI5KdUSqVkIcbWNAPic8RNEoz4eAl6tCkB5kasiLisRLHep3q+ZSvGxAqAEVgBLAM94SJnUZ0S gokfmkvmRAwlsTS3NXncUnf2hsiIXOJoh/G4uvzqWm33A9FrSp546cbP/Txy8pZCh3mODMSANx5aR weuOLtz2dGcTrrCYslhfxL6SbfGkY0OhOr3wl7NqBpjeWIE4YFEnrDjCtHgBcyR+NqIQOMGlLTXfz V5cHfWMw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dArhd-0005qp-QJ; Wed, 17 May 2017 05:40:53 +0000 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dArgp-0003aJ-PP for linux-mtd@lists.infradead.org; Wed, 17 May 2017 05:40:08 +0000 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 2642C8448C; Wed, 17 May 2017 17:39:28 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail; t=1494999568; bh=C5qJ67yyRvWzXx6Z9AdJFwKX3oCf0pWlxdsyw6Bl58k=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=JXo9q1mcmzGyBLI7NUuVMSB8DvOAN+xq0QzEBbt7WJPb1/T/VVifDjzCob1CiZqRw /nIK7VgNILIK+9ZbFi3UBcgzP6KUgvUC0C3ar94VF+e90x6aXDySjzq8lrcXDm1xfw 3DBzY9kucN9dUYdftnz2ieRTe0UJCTZFgFr1Tjc8= Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7, 5, 7, 9061) id ; Wed, 17 May 2017 17:39:27 +1200 Received: from chrisp-dl.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by smtp (Postfix) with ESMTP id BF42E13F113; Wed, 17 May 2017 17:39:26 +1200 (NZST) Received: by chrisp-dl.atlnz.lc (Postfix, from userid 1030) id 2FDBA1E0BB7; Wed, 17 May 2017 17:39:25 +1200 (NZST) From: Chris Packham To: dwmw2@infradead.org, computersforpeace@gmail.com, andrew@lunn.ch, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] mtd: mchp23k256: switch to mtd_device_register() Date: Wed, 17 May 2017 17:39:06 +1200 Message-Id: <20170517053908.26138-3-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.11.0.24.ge6920cf In-Reply-To: <20170517053908.26138-1-chris.packham@alliedtelesis.co.nz> References: <20170517053908.26138-1-chris.packham@alliedtelesis.co.nz> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170516_224004_153190_8976B467 X-CRM114-Status: UNSURE ( 8.78 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -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 X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Cyrille Pitchen , Boris Brezillon , Chris Packham , Richard Weinberger , Marek Vasut MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Use mtd_device_register() instead of mtd_device_parse_register() to eliminate two unused parameters. Signed-off-by: Chris Packham Reviewed-by: Andrew Lunn --- drivers/mtd/devices/mchp23k256.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/devices/mchp23k256.c b/drivers/mtd/devices/mchp23k256.c index 9d8306a15833..2542f5b8b63f 100644 --- a/drivers/mtd/devices/mchp23k256.c +++ b/drivers/mtd/devices/mchp23k256.c @@ -151,9 +151,8 @@ static int mchp23k256_probe(struct spi_device *spi) flash->mtd._read = mchp23k256_read; flash->mtd._write = mchp23k256_write; - err = mtd_device_parse_register(&flash->mtd, NULL, NULL, - data ? data->parts : NULL, - data ? data->nr_parts : 0); + err = mtd_device_register(&flash->mtd, data ? data->parts : NULL, + data ? data->nr_parts : 0); if (err) return err;