Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757881AbcJXQfs (ORCPT ); Mon, 24 Oct 2016 12:35:48 -0400 Received: from smtpout.microchip.com ([198.175.253.82]:44714 "EHLO email.microchip.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757513AbcJXQfq (ORCPT ); Mon, 24 Oct 2016 12:35:46 -0400 From: Cyrille Pitchen To: , CC: , , , , , Cyrille Pitchen Subject: [PATCH v3 4/9] mtd: spi-nor: remove unused set_quad_mode() function Date: Mon, 24 Oct 2016 18:34:41 +0200 Message-ID: <48d795fb0507dc356ac284520170c5be0882c431.1477325128.git.cyrille.pitchen@atmel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Brightmail-Tracker: H4sIAAAAAAAAC+NgFtrFrMTGxcLF5cOim2TBF2Ew997pDi6LjimrmCzufdrGaDFt+jtmi/vXTrNYXJ+3j9liQ/taJge2AIYo1sy8pPyKBNaMJT9usxes5Kp42H+CtYFxC0cXIxeHkMB6Rold53qZuhg5OdgEDCXePjjK2sXIwSEi4CBxbYI+SA2zwGZGif1n7zKC1AgL+Ej0n37HDGKzCKhKbLr6lg3E5hWIl+j/+okFxJYQkJO4ea4TrIZTwFZi84TNYL1CAjYS6769ZoSoF5Q4OfMJWD2zgITEwRcvmCFq1CQWtqxghpgTKNHxfQ4rhO0ksXP5VKj5dhKHp19kh7AdJJb+nsMOU9O+9A1UvbbE9lf7oGwdiW0H+6F6bSX2zJjIBGG7Szx4tBzK9pWY9bABqiZK4u28UywTGCVmITl1FpJTFzAyrWKUdvbw0w0O03WNcPYwMNXLTc4o0M1NzMzTS87P3cQIiaysHYy9k/ylGhiVV6rzrzySFK9YzHdq0osrd0PXHF5zhG9l8m6JT/fNFPn2+7FPbGuN/t7+wvvsO7d1RiLVp0zfztzFWJF8Uibu+t8jLC3WsfwzThZs3PV3SsCzE+XNPK7GEu9fxUn2X5bdl3Hz6a+Jzz0fnJddf0VAYKWrkNjn/xxLFl80NDxoIcMYe7Yi5rmPEktxRqKhFnNRcSIAAvPmi00CAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1272 Lines: 47 The set_quad_mode() function is no longer used, so we remove it. This patch is not squashed into the previous patch on purpose for readiness issue and to ease the review process of the whole series. Signed-off-by: Cyrille Pitchen --- drivers/mtd/spi-nor/spi-nor.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 05000b010e7f..a06fcf400b39 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -1331,30 +1331,6 @@ static int spansion_quad_enable(struct spi_nor *nor) return 0; } -static int set_quad_mode(struct spi_nor *nor, const struct flash_info *info) -{ - int status; - - switch (JEDEC_MFR(info)) { - case SNOR_MFR_MACRONIX: - status = macronix_quad_enable(nor); - if (status) { - dev_err(nor->dev, "Macronix quad-read not enabled\n"); - return -EINVAL; - } - return status; - case SNOR_MFR_MICRON: - return 0; - default: - status = spansion_quad_enable(nor); - if (status) { - dev_err(nor->dev, "Spansion quad-read not enabled\n"); - return -EINVAL; - } - return status; - } -} - static int spi_nor_check(struct spi_nor *nor) { if (!nor->dev || !nor->read || !nor->write || -- 2.7.4