Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755948AbcCaGip (ORCPT ); Thu, 31 Mar 2016 02:38:45 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:47655 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752960AbcCaGin (ORCPT ); Thu, 31 Mar 2016 02:38:43 -0400 X-AuditID: cbfee690-f79e56d0000012c4-c8-56fcc5f12478 Message-id: <56FCC5F1.4040203@samsung.com> Date: Thu, 31 Mar 2016 15:38:41 +0900 From: Jaehoon Chung User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-version: 1.0 To: Shawn Lin , Ulf Hansson Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] mmc: dw_mmc: remove setup_clock callback References: <1453944616-16224-1-git-send-email-shawn.lin@rock-chips.com> <1453944679-16981-1-git-send-email-shawn.lin@rock-chips.com> In-reply-to: <1453944679-16981-1-git-send-email-shawn.lin@rock-chips.com> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgkeLIzCtJLcpLzFFi42JZI2JSqPvx6J8wg4/LdCwu75rDZnHkfz+j xZ0n61ktjq8Nd2DxuHNtD5vH31n7WTw+b5ILYI7isklJzcksSy3St0vgyngwaw9TwSq+inmL m9gaGE9zdzFyckgImEic2bqPHcIWk7hwbz1bFyMXh5DACkaJvX/es8EUzT58FKxISGAWo8SO mdIQRQ8YJVaduMkKkuAV0JJ48v8II4jNIqAqsXNLDwuIzSagI7H923EmEFtUIEziwbq9UPWC Ej8m3wOrERHwk9i6YyvYMmYBa4mfP1rBaoQFHCX2rHwEdVE7o8STd9PBEpwCnhKXGhYDLeMA atCTuH9RC6JXXmLzmrfMIPUSAqvYJU59hHiNRUBA4tvkQywg9RICshKbDjBDPCYpcXDFDZYJ jGKzkJw0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fj9V7cVaFTfuOJK5qmXBBNu7O45vn3QuyK2uZn7D12OW9o2P L9c/MJK45KvWe+zvrTNdK8ouiLv9n3Hb+ewrhZmzYvVkl/muWrP1w6b4NPOmjn6ZGzk3a2qs zrx+rK026x6jUPAn3m8rV9j0b/TROTz9qmD1yX1am9cvjnD8slhgpt3dTUm5+5RYijMSDbWY i4oTARLlh8foAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1776 Lines: 56 On 01/28/2016 10:31 AM, Shawn Lin wrote: > Now, no dw_mmc variant drivers use this callback, let's > remove it. > > Signed-off-by: Shawn Lin > --- > > drivers/mmc/host/dw_mmc.c | 9 --------- > drivers/mmc/host/dw_mmc.h | 1 - > 2 files changed, 10 deletions(-) > > diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c > index 1d27a2b..ee13374 100644 > --- a/drivers/mmc/host/dw_mmc.c > +++ b/drivers/mmc/host/dw_mmc.c > @@ -3003,15 +3003,6 @@ int dw_mci_probe(struct dw_mci *host) > } > } > > - if (drv_data && drv_data->setup_clock) { > - ret = drv_data->setup_clock(host); > - if (ret) { > - dev_err(host->dev, > - "implementation specific clock setup failed\n"); > - goto err_clk_ciu; > - } > - } > - > setup_timer(&host->cmd11_timer, > dw_mci_cmd11_timer, (unsigned long)host); > > diff --git a/drivers/mmc/host/dw_mmc.h b/drivers/mmc/host/dw_mmc.h > index 1a9492e..bfc2a4d 100644 > --- a/drivers/mmc/host/dw_mmc.h > +++ b/drivers/mmc/host/dw_mmc.h > @@ -286,7 +286,6 @@ struct dw_mci_slot { > struct dw_mci_drv_data { > unsigned long *caps; > int (*init)(struct dw_mci *host, bool setup_clk); > - int (*setup_clock)(struct dw_mci *host); Could you remove the description for setup_clock? * @init: early implementation specific initialization. - * @setup_clock: implementation specific clock configuration. * @set_ios: handle bus specific extensions. * @parse_dt: parse implementation specific device tree properties. * @execute_tuning: implementation specific tuning procedure. Best Regards, Jaehoon Chung > void (*prepare_command)(struct dw_mci *host, u32 *cmdr); > void (*set_ios)(struct dw_mci *host, struct mmc_ios *ios); > int (*parse_dt)(struct dw_mci *host); >