Re: [PATCH] mmc: dw_mmc: Remove unused function for !CONFIG_OF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 16 September 2014 09:54, Tobias Klauser <tklauser@xxxxxxxxxx> wrote:
> dw_mci_of_find_slot_node() is only used in dw_mci_of_get_slot_quirks()
> if CONFIG_OF is defined, thus there is no need to have a !CONFIG_OF
> version of it. Fixes the following compile warning with !CONFIG_OF:
>
>   CC [M]  drivers/mmc/host/dw_mmc.o
> drivers/mmc/host/dw_mmc.c:2223:28: warning: ‘dw_mci_of_find_slot_node’ defined but not used [-Wunused-function]
>
> Signed-off-by: Tobias Klauser <tklauser@xxxxxxxxxx>

Thanks! Applied for next.

Kind regards
Uffe

> ---
>  drivers/mmc/host/dw_mmc.c | 4 ----
>  1 file changed, 4 deletions(-)
>
> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
> index 835e913..109fefe 100644
> --- a/drivers/mmc/host/dw_mmc.c
> +++ b/drivers/mmc/host/dw_mmc.c
> @@ -2220,10 +2220,6 @@ static int dw_mci_of_get_slot_quirks(struct device *dev, u8 slot)
>  {
>         return 0;
>  }
> -static struct device_node *dw_mci_of_find_slot_node(struct device *dev, u8 slot)
> -{
> -       return NULL;
> -}
>  #endif /* CONFIG_OF */
>
>  static int dw_mci_init_slot(struct dw_mci *host, unsigned int id)
> --
> 2.0.1
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux