From nobody Sun Dec 14 06:20:46 2025 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 E5EE92135DF for ; Thu, 23 Jan 2025 11:38:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632330; cv=none; b=gUS9XaR2v+Gu/zAcJvF3QIyoO0qjTBSTIJxAH6Pj/iSOCzKKcV6/ai4Q19eoFGlS2Bzq3gxZ0V7gXu5coFZsFBsETOV4NZu4VZ8Dq0eNl91v57Fl6MPjJtiGiLQEXQ8VZ6aBtUW3zIEn6wrX3DRdY+hzo5N4fI1Daq9D0f6PTio= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737632330; c=relaxed/simple; bh=OuDqbHqGfRysDhKjL9U5QmypsKBYfISLrjDmh0ILSLU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=V0TID5uZ/1Ank3l5RF9NtQOgLxzhXrRr5WaWT05qNfUXcPjAM3FCDRU+LEvIMfCsfP9nuJdudHhWYj5aUAb3FcSo1reUkMNLwCaZmI/y1bGnHgvlkqDnhZ83bonxY/X2+5LKV5OcKeTWP1X+GlBFyQz1vb6h7xrhwJ6vcA78sUY= 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=jZTiIwE5; arc=none smtp.client-ip=209.85.214.171 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="jZTiIwE5" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-2165448243fso16030825ad.1 for ; Thu, 23 Jan 2025 03:38:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1737632328; x=1738237128; 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=vt1kyyizP9VY8dmYd/NkcYQ7O3bbff4IlhNlXP/VIDI=; b=jZTiIwE5N4Pqmvl83iCCEue0h0FWxdLBhyaeYj6Z79M7+KoCHGZcygToW55E7kmJGc VXw62j9PCd6WfvThQteDED8nC4W6XGIw4LA7aw866j+08Xbx0D3NNsHMyGcOMQCERBkv JnoPOD0LfDS/kvU0ziOWlkJ1aZXNlk/9OLiDMAmZ2JY+FV2qgSzvG11NSaaPtEIMiUar yVtKF/RnwFcMI/GxlPCDbZ9Mh7DED4B6V2DNKCkwpQZZmCvXrryvCae2POoxDVDm51GZ j8Lc8FQHEUwsrB5aDw0Pqqx8G0xgWfD/tee6H+GMBFux/7hqdhiNcfDnobvBBrGeDFZ6 zdCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737632328; x=1738237128; 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=vt1kyyizP9VY8dmYd/NkcYQ7O3bbff4IlhNlXP/VIDI=; b=Wj2ayXSOysyCC/vRQ436j0gWBGARZKJs5LaiXV82gfGblYN3kXX4WUww9ndbpk+TgK BQC57ArpGe7odlELz0FOap1ojP1DpzPCG7Yp/fsE3HZ4CHv1dMJosRh3h5nsqDeTCvET q/yPmfY95mkBT5NEtmWdqU1vIwn24+QwwyzNISIvAuKrsIq9vst3nUMnJOGawuXOlIhB ARa+aR2eUmo1O2ybi05lyG7pU50ngiIrG+H44twGQN/OWqSTY+upgy5Hw5Mwz6NQkHdP 6WcrypBZQADR/p3/cEFET2IQbmWGvO04/NI1FMnUwSY6K717ghiwnIQFWEphJIO+epoH 7lFA== X-Forwarded-Encrypted: i=1; AJvYcCUgAEjZm3LM3qILmmmlTBWemTsjW6dOMHuYX0nIVKJjYwiAFYVIAQkyV6I93qsjRawrqydHcTW+vynq8jA=@vger.kernel.org X-Gm-Message-State: AOJu0YzWYgNEWuAtXyPB3/u47foFTZKuJ4yBdOUdTEKC1LVzG9YxoawC 9IDbaYutsR1OMBbVRLLMPZEKGzSVoAv0vIK5P+LNcxmIHe9MxlrFHdx8ztrWqKs7tkd/raRaDLS B X-Gm-Gg: ASbGncuLA1X/sKdQbF0o3Cq1Ch3qX639mdhqNceBYx75PpkecFGEYJvymnixE+4E3KH b8SZ0BjYjfX3C2SQnEzifBVdgZQ4txARQ3c+3kUhh7xylwaG1dPYgSQhZtIHmrBcilLtLDEQQO+ EKq0BE1AQO/jnZp0q6qe23w7BgUOImHBZ/EJmc2g8S8J5i8rZTjWXDMoMpxrDE64E2AUHpG9Cut wo/GVFHVKoHnbrl6yha38XbIyU6v0/QSCDB6CgmazCcuv/MpvEmx/9yztjTIhrnynNC3mhNFOeL EAfjonk= X-Google-Smtp-Source: AGHT+IEDImNLEpDbeExd7a/CwLwEpkI62SjufT/nbplsqzlm5l6MTyrbVsJXoZ25z9KBxH8jSJvHqg== X-Received: by 2002:a17:902:ea03:b0:219:d28a:ca23 with SMTP id d9443c01a7336-21c355eea74mr385862205ad.36.1737632328330; Thu, 23 Jan 2025 03:38:48 -0800 (PST) Received: from localhost ([122.172.84.139]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21c2d3d7d98sm111571915ad.177.2025.01.23.03.38.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 03:38:47 -0800 (PST) From: Viresh Kumar To: "Rafael J. Wysocki" , Viresh Kumar , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 14/33] cpufreq: mediatek: Stop setting cpufreq_driver->attr field Date: Thu, 23 Jan 2025 17:05:50 +0530 Message-Id: <4f57adcf5fa9f3c95d5f86c76a323f0c8bf1a0c9.1737631669.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The cpufreq core handles this for basic attributes now, the driver can skip setting them. Signed-off-by: Viresh Kumar --- drivers/cpufreq/mediatek-cpufreq-hw.c | 1 - drivers/cpufreq/mediatek-cpufreq.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/cpufreq/mediatek-cpufreq-hw.c b/drivers/cpufreq/mediat= ek-cpufreq-hw.c index 9252ebd60373..aa209f5527dc 100644 --- a/drivers/cpufreq/mediatek-cpufreq-hw.c +++ b/drivers/cpufreq/mediatek-cpufreq-hw.c @@ -293,7 +293,6 @@ static struct cpufreq_driver cpufreq_mtk_hw_driver =3D { .register_em =3D mtk_cpufreq_register_em, .fast_switch =3D mtk_cpufreq_hw_fast_switch, .name =3D "mtk-cpufreq-hw", - .attr =3D cpufreq_generic_attr, }; =20 static int mtk_cpufreq_hw_driver_probe(struct platform_device *pdev) diff --git a/drivers/cpufreq/mediatek-cpufreq.c b/drivers/cpufreq/mediatek-= cpufreq.c index 663f61565cf7..2656b88db378 100644 --- a/drivers/cpufreq/mediatek-cpufreq.c +++ b/drivers/cpufreq/mediatek-cpufreq.c @@ -618,7 +618,6 @@ static struct cpufreq_driver mtk_cpufreq_driver =3D { .exit =3D mtk_cpufreq_exit, .register_em =3D cpufreq_register_em_with_opp, .name =3D "mtk-cpufreq", - .attr =3D cpufreq_generic_attr, }; =20 static int mtk_cpufreq_probe(struct platform_device *pdev) --=20 2.31.1.272.g89b43f80a514