From patchwork Tue Aug 30 10:02:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 74962 Delivered-To: patches@linaro.org Received: by 10.140.29.52 with SMTP id a49csp2061504qga; Tue, 30 Aug 2016 03:02:25 -0700 (PDT) X-Received: by 10.46.9.76 with SMTP id 73mr705204ljj.61.1472551345708; Tue, 30 Aug 2016 03:02:25 -0700 (PDT) Return-Path: Received: from mail-lf0-x22a.google.com (mail-lf0-x22a.google.com. [2a00:1450:4010:c07::22a]) by mx.google.com with ESMTPS id 9si17458213lfe.347.2016.08.30.03.02.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Aug 2016 03:02:24 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::22a as permitted sender) client-ip=2a00:1450:4010:c07::22a; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::22a as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x22a.google.com with SMTP id g62so9764213lfe.3 for ; Tue, 30 Aug 2016 03:02:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=LzSX6SD2DIHr9H0bKaPcBBf0+I/OozX0l5wYFXyX32Y=; b=HYsRohonFuINys61zVhEgVIDbAV3uXV2aW+Sm/eF+UmXLwwhPricpWMDbgchWcRv/r 1yrQKxtDPYvbXvWXIYY3J/EH1IJqsAf2XVkLZg3+BA0VKiIscNUUBPu2Vs8zI9374E+A wac74h8PycLXLrMSK7+XM6V+IH6xubLHpoXiQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=LzSX6SD2DIHr9H0bKaPcBBf0+I/OozX0l5wYFXyX32Y=; b=CqXPrBxkiEH7jJLMerGZ9K2FSNoeT8uPi7d80KRbn9ZZR+BfXqkojoubiPb9SjSbWw oGWMOL6lbc0mHIAi2ANV2yxAIceQKLN9rywpX4wJDnIzImQTLUQR3xC69qaA356NL4yq HVdkVaMKkzuZ9Zzaub+ZmiqZNqRu/OYc/sNy0spBKczL//2ZUgEDiFT/u61ERkw2Of7c DWkVIQziYY2yjNo8TqnAJKecSIKxoctN3Ou9A8up2q/8nxmN8r9vDF+3HEFbf6e/Gv7Q YDRnNtaBwmBEItnw1Cwwle+IS512X5lPueRladP3V+ivkHEY4N0NrEA4KIQ6vCOPjJDQ c1IA== X-Gm-Message-State: AE9vXwNT2gmUgitrOxxyNJ8XOI8k2AAilbIFQ2PGRDnhJTS5lUpADabQ1dMRsyQTGGZlLQCyerM= X-Received: by 10.25.1.213 with SMTP id 204mr835128lfb.114.1472551344297; Tue, 30 Aug 2016 03:02:24 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-155-4-130-67.na.cust.bahnhof.se. [155.4.130.67]) by smtp.gmail.com with ESMTPSA id p102sm7247952lfi.9.2016.08.30.03.02.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Aug 2016 03:02:22 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson , Adrian Hunter Subject: [PATCH] mmc: sdhci: Remove ->platform_init() callback as it's no longer used Date: Tue, 30 Aug 2016 12:02:18 +0200 Message-Id: <1472551338-20019-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 The commit 1ef5e49e46b9 ("mmc: sdhci-of-esdhc: add/remove some quirks according to vendor version") moved sdhci-of-esdhc away from using the ->platform_init() callback. As it was the only user of it and that it seems reasonable to believe that it won't be needed again, let's remove just remove it. Signed-off-by: Ulf Hansson --- drivers/mmc/host/sdhci-pltfm.c | 7 ------- drivers/mmc/host/sdhci.h | 1 - 2 files changed, 8 deletions(-) -- 1.9.1 diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c index 1d17dcf..ad49bfa 100644 --- a/drivers/mmc/host/sdhci-pltfm.c +++ b/drivers/mmc/host/sdhci-pltfm.c @@ -156,13 +156,6 @@ struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev, host->quirks2 = pdata->quirks2; } - /* - * Some platforms need to probe the controller to be able to - * determine which caps should be used. - */ - if (host->ops && host->ops->platform_init) - host->ops->platform_init(host); - platform_set_drvdata(pdev, host); return host; diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index 0411c9f..a2bc9e1 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h @@ -555,7 +555,6 @@ struct sdhci_ops { void (*set_uhs_signaling)(struct sdhci_host *host, unsigned int uhs); void (*hw_reset)(struct sdhci_host *host); void (*adma_workaround)(struct sdhci_host *host, u32 intmask); - void (*platform_init)(struct sdhci_host *host); void (*card_event)(struct sdhci_host *host); void (*voltage_switch)(struct sdhci_host *host); int (*select_drive_strength)(struct sdhci_host *host,