Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754986AbcJEMBj (ORCPT ); Wed, 5 Oct 2016 08:01:39 -0400 Received: from smtpout.microchip.com ([198.175.253.82]:41694 "EHLO email.microchip.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753127AbcJEMBh (ORCPT ); Wed, 5 Oct 2016 08:01:37 -0400 From: Cyrille Pitchen To: , CC: , , , , Cyrille Pitchen Subject: [PATCH v2 4/9] mtd: spi-nor: remove unused set_quad_mode() function Date: Wed, 5 Oct 2016 14:00:35 +0200 Message-ID: <01ae2a97814fac0b3b8ee56e0e4bb9b541fd17d5.1475668319.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+NgFupkVWLjYuHi8mHRXfj6S7jBmoObbrBYdExZxWRx79M2Rotp098xW9y/dprF4vq8fcwOrAEMUayZeUn5FQmsGZc/r2EsWMlVcWHafNYGxi0cXYxcHEIC6xglXu5fxdrFyMnBJmAo8fbBUSCbg0NEwEHi2gR9kDCzwEJGiesnlEBsYQEfiedP74OVswioSDzv2sMOYvMKxEtsvHGVCcSWEJCTuHmukxnE5hSwlZi24QsLiC0kYCMxb+ZqqHpBiZMzn7BAzJeQOPjiBTNEjZrEwpYVzBBzAiUuvb7HCmE7SXSdnMgGYdtJHJ5+kR3CdpDYvgtiPkjNrs+XoXq1Jba/2gfVqyOx7WA/VI2txJ4ZE6HudJd48Gg5lO0rMethA1RNlETjs4dMExglZiE5dRaSUxcwMq1ilHb28NMNDtN1jXD2MDDRy03OKNDNTczM00vOz93ECImmzB2Mxxr8DzFKcjApifJunXQ+XIgvKT+lMiOxOCO+qDQntfgQowQHj5IIr+VyoBxvcUFibnFmOkxKhoNDSYI3AiQlWJSanlqRlplTkloEkT7FKCklzhsNkhQA6csozYPLXWIUlRLmjVoKlOMpSC3KzSyBiN9iFOZ4yCTEkpeflyoFdCIDEGgwvmIU52BUEuZ1B5nFk5lXAnfCK6DrmICuW7f7NMh1JYkIKakGxnXKyakvRddsuZus/F110XHfP6miJzJ3Xb9veW557kYm/upZzxNvXct6lSdjVanmW8HEEKtzkeeM6PuD2YeOHbwtGBPzPenxcyP205PzA55wX7kZ6risUfy59RyVp349lWKrW2K/G030uXjgxIoTzTN/i2T5BZ/lub9NZHfhWr1rLKp/bn7OZlViKc5INNRiLipOBACO0gglHAMAAA== 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 51eac2278ec0..ce06c4b49dba 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