Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1001252pxb; Wed, 6 Apr 2022 06:26:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvbcBtE+0vMdmTPFpHiw6KU8VxocdQu4hcV+mNreK+Xuc6U4hfdUpQgvesnheD3oBmeuYQ X-Received: by 2002:a05:6830:1f5b:b0:5a2:2ec7:4ea4 with SMTP id u27-20020a0568301f5b00b005a22ec74ea4mr3001411oth.206.1649251601047; Wed, 06 Apr 2022 06:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649251601; cv=none; d=google.com; s=arc-20160816; b=Aczp1AY+tokGPDtb6fseWSJCn1PPwimPrEUWInS7fIWNH4gphRydxJqCIPiiOeU3qi qPYzVi1tzq4pHiY8ZLYdaeThtkGpfVd9xlUYiOUEpoZdhD9IerdslsYx6UsuafNP4Oph cp7E1+YJU3GCtmzSXFEZudSW6s3hVXrJ3gqbjfq6R6KH7sRMrYCuUpkObtOzLl/JB6z0 cCLbaoCzWkpvha242ct6WI4VRYU9RhYMAoMCcP+J9Q6A1LIBOXUTWz7Vqzsm9dMwCfbN yw/SqpqrmuDQXhUWO7yvJZ/A8Qk0kHIo3N4syJypp/POq0xrZYmeVgAzTecpt315A9Sq i05Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zNiXcWQw+kke1tEG0BijhxEAtYgN30JkWnnWxZdLtWM=; b=C9tWjOm3/x33e+ltBCrY7TTzLPIsBT1BYm0+PjBSUrsL01N7yqfQYK4QCHnOjNC3OZ xJlpJqcQx27ZB1iDg98cG3xI4DM5edUs35Q0uQh/wOyflZsqrF3ncz5VGEdcnDaC05tx l84l6xqEac807Th4tNfhfjA48gqWnA1Qa+FvATGRjt2+WrpcCUQsNxy2wgctVWHlvM0O 4yr1SDJcJHTg4HgNCoqOHiUTso6rmi5KqhEH+ur0sHtG5vxcAMZpFQ0f8UvYw+NQQ6Wr lCuud57GJIIK+2SNfW3yQmDMlb9y9ise9iJURz5FiaF/DJ6KtQtuQyH3PdeWEsft4ohn QpaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2sddKG4f; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b124-20020acab282000000b002f72e088537si8791854oif.224.2022.04.06.06.26.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 06:26:41 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2sddKG4f; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 914625B6532; Wed, 6 Apr 2022 04:02:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1847031AbiDFCMX (ORCPT + 99 others); Tue, 5 Apr 2022 22:12:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354396AbiDEKOA (ORCPT ); Tue, 5 Apr 2022 06:14:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A28B168FB6; Tue, 5 Apr 2022 02:59:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3DF756172B; Tue, 5 Apr 2022 09:59:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 489DEC385A2; Tue, 5 Apr 2022 09:59:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152791; bh=6bkja0LTQHSZqPVobeIryLZm/EoL6/GJ5Tl85AYkTlQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2sddKG4f34oIp0QGnODJIR9EnUWpjDIMUITWKy658zEGiwHcbXJ4zuSJowiDt5Y+M ExD1bogCAI3hrsIjv19kkmNEefiKwZ6wBQWp6xiBH7+ozjI9ZZ2s66U0fCY5Uz6vhH qzD/os2aT0vRWm+sSwHqMJGrjeDTl5MSrV9oZsUw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kai-Heng Feng , kernel test robot , Ulf Hansson Subject: [PATCH 5.15 903/913] mmc: rtsx: Fix build errors/warnings for unused variable Date: Tue, 5 Apr 2022 09:32:45 +0200 Message-Id: <20220405070406.886006401@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ulf Hansson commit 3dd9a926ec2308e49445f22abef149fc64e9332e upstream. The struct device *dev, is no longer needed at various functions, let's therefore drop it to fix the build errors/warnings. Fixes: 7570fb41e450 ("mmc: rtsx: Let MMC core handle runtime PM") Cc: Kai-Heng Feng Reported-by: kernel test robot Signed-off-by: Ulf Hansson Link: https://lore.kernel.org/r/20220301115300.64332-1-ulf.hansson@linaro.org Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/host/rtsx_pci_sdmmc.c | 6 ------ 1 file changed, 6 deletions(-) --- a/drivers/mmc/host/rtsx_pci_sdmmc.c +++ b/drivers/mmc/host/rtsx_pci_sdmmc.c @@ -806,7 +806,6 @@ static void sd_request(struct work_struc struct mmc_request *mrq = host->mrq; struct mmc_command *cmd = mrq->cmd; struct mmc_data *data = mrq->data; - struct device *dev = &host->pdev->dev; unsigned int data_size = 0; int err; @@ -1081,7 +1080,6 @@ static void sdmmc_set_ios(struct mmc_hos { struct realtek_pci_sdmmc *host = mmc_priv(mmc); struct rtsx_pcr *pcr = host->pcr; - struct device *dev = &host->pdev->dev; if (host->eject) return; @@ -1130,7 +1128,6 @@ static int sdmmc_get_ro(struct mmc_host { struct realtek_pci_sdmmc *host = mmc_priv(mmc); struct rtsx_pcr *pcr = host->pcr; - struct device *dev = &host->pdev->dev; int ro = 0; u32 val; @@ -1156,7 +1153,6 @@ static int sdmmc_get_cd(struct mmc_host { struct realtek_pci_sdmmc *host = mmc_priv(mmc); struct rtsx_pcr *pcr = host->pcr; - struct device *dev = &host->pdev->dev; int cd = 0; u32 val; @@ -1255,7 +1251,6 @@ static int sdmmc_switch_voltage(struct m { struct realtek_pci_sdmmc *host = mmc_priv(mmc); struct rtsx_pcr *pcr = host->pcr; - struct device *dev = &host->pdev->dev; int err = 0; u8 voltage; @@ -1308,7 +1303,6 @@ static int sdmmc_execute_tuning(struct m { struct realtek_pci_sdmmc *host = mmc_priv(mmc); struct rtsx_pcr *pcr = host->pcr; - struct device *dev = &host->pdev->dev; int err = 0; if (host->eject)