From patchwork Thu Jan 23 11:35:49 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 13948175 X-Patchwork-Delegate: viresh.linux@gmail.com Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4DF2521325E for ; Thu, 23 Jan 2025 11:38:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632326; cv=none; b=KgKzFHum3TygM/ecYpdkXp4d72lSboGX+Vl9gr+BaVauGsboj0W2vYmEJS4qrwQee3vKzk48hcnk907YBiC+d32UmwcHPWJiJkzJDTrKPeSt9pfHozHrrIqyJ/dvm06naW0QcpIfVbIKKC6hquxqp2Ec3acesl7zzF6Cy1wkYrs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632326; c=relaxed/simple; bh=WV84G/RB5+7f1rTZu4Rt6v1dVd1mWE1RlukKepVDMOg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AOfPUEkLsq+/VIFYF9Ag7vCcWioMdD39aYXuzsprU/9kPJjgt8k8rqwm0mSwsnERNOipkIO69DLWJVyVQgTFDr+xz91h0eHaNvUr6gf7aUGRkFotGgiKwiOSQfd4K4sg/F4oUhr+WfnDbIt8IdUsiDjdiUZSDsHbok6/AZWz9/k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Wdn7woYJ; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Wdn7woYJ" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-216728b1836so11507495ad.0 for ; Thu, 23 Jan 2025 03:38:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632325; x=1738237125; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=dPQFhXLLMXODhvNoypMAGj1uR2YWHafKwP+IehwFe5U=; b=Wdn7woYJL9ZSp22i6X1PZMk6vjuOmO4Jeio+YsjMlGFjEcjxQ3P0V1AroUVQBf50Yi GWEmHxeXYiTpJa9G+trWKJFxVFjTI0hK+T2dF3DzCrh4kg58RrLyoNat6ffIfrddqaro VOmdzU5B8IXM8C7YhhNDpMtW3i9927hZUQBpizCdvwydng0N275yl+47bzBTHqZEepc8 Lsw6KnLtnk92Pxkh1A11pKCvKrvfXFjXP4aIvYbYnK6W8FmxpK25ABBbICt729niaBJy rWkRP9DBBag3x2plDB6rjunA12xGBxX+eyo0NVyxIfbR8lNyqOVqaioMzc09ALIoQY2S 8KwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632325; x=1738237125; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dPQFhXLLMXODhvNoypMAGj1uR2YWHafKwP+IehwFe5U=; b=UxWcXExfZEAnRhEtB7420GtbfHtNQL1O/94fwINFvQxsqmrRz2xKWkqdNuu5tnx6nF 6hCdq74pN77+zaBdjMaajTBkuhgbeVJvqNw3Qz/xuiqVD6amn7+EwbynnHqIBQ+KTJBx 2owjNig/39ijalDFPqNgoSYqD3P1UUPsAe3XRJibdBjnYQb4k8HGxZsPCnzJnq9knqxd 4bxSCbFS9+e/3lvNLr+Ck9Ka8sjik2SwI1bO1klfiBl870xGJjEeSKhUKCSEL2OTY4gJ GHmPdhQ6BoB6/ehYG8GyHRry5yoS4I57LULZr8XlYALGtkQeI6xm4aQ6flfogqqm1XO8 I/CA== X-Gm-Message-State: AOJu0YyR9BjxxgmlnT3w5RhmhiUIfs+Vt4KgoSEC0rCbMVK/ab8GVBEX jkl7I2TERpIRNSZUM2kzFw52uuTJ4zRuKYa7Ohd4IpMtwLIKF3TLA2Xybu5yP/wXQYx0OaiuNTh i X-Gm-Gg: ASbGncsAc3VqFqmFSrAhSSG54iwaI0lfEqymyrIGkGsuQiYX7gZA3zEW0zPgK1xxvXx iXhL6ggjVUWJmy5w5R4S0a5+Xo4OREin1D+zlVt+Ty912cQFOm2VZWgsFCthy/52A62PhccUMX0 7wIV/ZD42XVXsSmPGHMaNI1xUISWGXJNHZcuyU7o6/zRRwcnsT0AB9bRGzHc+gMxta54ZEaqHHo cPl8w/hPPIl0gsUzqprB7U7bgndsSzKEK22QiKDjxwsrLxSTUCGHsvak4q7trm2EkEBgdjwhZBA ZnQ/+y0= X-Google-Smtp-Source: AGHT+IGH1rgrIO+s+Y/sZ3xBZQHUbxqMwBuZRbD1wDrTeC9bj2qH2sxuniFd3GYQRJetgoOSm4ug5w== X-Received: by 2002:a05:6a00:bd7:b0:72d:b2ed:8788 with SMTP id d2e1a72fcca58-72db2ed89dbmr24987717b3a.10.1737632324738; Thu, 23 Jan 2025 03:38:44 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72dabace1bdsm13291546b3a.171.2025.01.23.03.38.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:44 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Jiaxun Yang , Viresh Kumar , Huacai Chen , WANG Xuerui Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev Subject: [PATCH 13/33] cpufreq: loongson: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:49 +0530 Message-Id: X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The cpufreq core handles this for basic attributes now, the drivers can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/loongson2_cpufreq.c | 1 - drivers/cpufreq/loongson3_cpufreq.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/cpufreq/loongson2_cpufreq.c b/drivers/cpufreq/loongson2_cpufreq.c index ed1a6dbad638..39a6c4315a60 100644 --- a/drivers/cpufreq/loongson2_cpufreq.c +++ b/drivers/cpufreq/loongson2_cpufreq.c @@ -91,7 +91,6 @@ static struct cpufreq_driver loongson2_cpufreq_driver = { .verify = cpufreq_generic_frequency_table_verify, .target_index = loongson2_cpufreq_target, .get = cpufreq_generic_get, - .attr = cpufreq_generic_attr, }; static const struct platform_device_id platform_device_ids[] = { diff --git a/drivers/cpufreq/loongson3_cpufreq.c b/drivers/cpufreq/loongson3_cpufreq.c index bd34bf0fafa5..ea516b939c44 100644 --- a/drivers/cpufreq/loongson3_cpufreq.c +++ b/drivers/cpufreq/loongson3_cpufreq.c @@ -337,7 +337,6 @@ static struct cpufreq_driver loongson3_cpufreq_driver = { .offline = loongson3_cpufreq_cpu_offline, .get = loongson3_cpufreq_get, .target_index = loongson3_cpufreq_target, - .attr = cpufreq_generic_attr, .verify = cpufreq_generic_frequency_table_verify, .suspend = cpufreq_generic_suspend, };