Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp622330pxb; Tue, 5 Apr 2022 16:15:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGFxuZfwnE9qoNEbgBKQvV57bNZpeKRVFs2y3+IZLaFDrbBAC5DULVoaTouod+kX0wJYDs X-Received: by 2002:a17:903:286:b0:156:79d7:c7b0 with SMTP id j6-20020a170903028600b0015679d7c7b0mr5803576plr.25.1649200556664; Tue, 05 Apr 2022 16:15:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649200556; cv=none; d=google.com; s=arc-20160816; b=JljEX8U1qrAkaQ8mWX8S4Txi00SZu1Z+eR/gl90W3Iy+nN72Hzsr/fUZ9BEOfnSj5j c+jlSQeNeYKHobVKbqAJelAogmV2uxEVePJIqqXPzT05d9zPSOH3uaNbexeArChZi5NQ /JzUafk3Vn0+hArN1t7aRcTi7FGbf1owybNTftdcEIWXqqw1pVz6InTxtIWQnAA4OWM9 gl9bk1uUBspY5iEZXXphVh0ys9ZBUFe6VTxWzMdOE9BK0Tzwmku0OGnCdZztjURVolXp 263V0bckNakZzZsFmjzjrixFl3JA8x24asTcyTwhscRzDnRDfr22QYkGDPcqpPRtQbZ0 G6TA== 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=FzCKdxFxQCIYB2D2XbHsP7QF6c66Je1wsLGjfEJKm8GG1gtmGzy2MMXy9rxFOI0fw/ 80pLEZQsSsl6Zt0xDyRV3SraZk4sm6i5m7X6dKti/2vVUBs/KbTOhFjIq8b5TNLuoLMl WWgCYIdaqbA/gLAAcdwQNofRnQP1SI0vTJVK+fj4258Ysn53QZpY4Syvw16bK6PywtZx ZRps2MVbvnsozOGd8NyYp+IoLeOjbYF7D7tLz473Drj6LSk+mylusnR7YvVeDkHen79/ km/GVZEfJQ2Vj3aG5libGHtKYeYCbKk4XYXcSk7NjXKInoV9y1t+ZvAVgauve0FkZrTK dpNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1mj3XuvF; 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 e3-20020a656bc3000000b00399574f25a4si3820339pgw.651.2022.04.05.16.15.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 16:15:56 -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=1mj3XuvF; 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 out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1ACA82228E5; Tue, 5 Apr 2022 16:00:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355822AbiDEOCq (ORCPT + 99 others); Tue, 5 Apr 2022 10:02:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235427AbiDEJah (ORCPT ); Tue, 5 Apr 2022 05:30:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0338E5414; Tue, 5 Apr 2022 02:17:40 -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 4E7A1615E4; Tue, 5 Apr 2022 09:17:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A9BDC385A3; Tue, 5 Apr 2022 09:17:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649150259; bh=6bkja0LTQHSZqPVobeIryLZm/EoL6/GJ5Tl85AYkTlQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1mj3XuvF2/w29lPKccFcuHDwIEovtmFb1znAKobbCw11kL/YlnahWPJcaUmII9gXJ k6uKbnMBmdmcXEtj60yWv+f8wXUWZpVteU3MHgAGZjhHnTH5RBmBD5gJCjG4wwk6+a tSmb32LSCRNIDARieQaSrwDddgtiq9mYLyqVXxIA= 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.16 1012/1017] mmc: rtsx: Fix build errors/warnings for unused variable Date: Tue, 5 Apr 2022 09:32:05 +0200 Message-Id: <20220405070424.236537241@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@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)