Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp927044imd; Thu, 1 Nov 2018 07:43:00 -0700 (PDT) X-Google-Smtp-Source: AJdET5e60rlseQ1Qvy8cotRj9c91Xfo4Wq7dITJjolQo4IGGx3W5CKPyHCc7ZeirXplsP7B9VQ+I X-Received: by 2002:a17:902:8306:: with SMTP id bd6-v6mr7884616plb.321.1541083380421; Thu, 01 Nov 2018 07:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541083380; cv=none; d=google.com; s=arc-20160816; b=zJMTjDXqkxvCumhfIhknsFmddlI03y9vfmpnRkBPIgnlSL27UdMVzL712qn343Rj8+ +JTDGM31XnmAlnRODwVhgvbyifMq/TScj7PClzpVbyAnGi60csKCaOCjYgXVM1IYDnx+ BBU90/PVhutJsreH+zypMzy9PGYpM69sym/krk/YG5W1SeKSEge4I9fHV5m6YcyuJrVS Z6DVrlevpL5M983ppbFevJ7mNadDe59h0Fc/0AxK8RcXtJT0qqZDkiZC/79XSAA4g1zO 7wxV0RYQXaQkFQOcrjJlgqFeOt79yDPrsBCEcCpg5FQTMRa8GDVMRtbjeQPz5cILKkLA xE8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=BVZgndSiBUt7yiMtAB8gRlYd3Gzye7qmzGWarjsNr1A=; b=nYGjxemsAq8GaVIEeNPxciGzQsridi98MfkkAcX1IyDP5QwXAbWsA6Ub8vBuPEYM+a EfqpEGpldRL2oI2v4iESem5bVNblXyp8cKqt7HBXB158i6JJ/i6VOU79tryC8N01XLS8 WIOcBjSpgYsAK9b07zT/TVHtsO/JqTjKs7vEJ+R2MuPqUQOyCmKLeXTKrZL2cv80FhJy W4xLTuN7TPfL+0ZNaXVNVOa2CulL2ogztbemNxCs2KXXAC2xFdlomhl6keb5ZyfMRg7A dP0d6AaMnhoWLoWCvhYuMwYo1nUMoPL32QBwGqepuZfl7D5yqNaFc2rdnbvQSpo5Y+Ml TwFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UdLoqJS+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si4431118plx.91.2018.11.01.07.42.44; Thu, 01 Nov 2018 07:43:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UdLoqJS+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728627AbeKAXoE (ORCPT + 99 others); Thu, 1 Nov 2018 19:44:04 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:47002 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728110AbeKAXoE (ORCPT ); Thu, 1 Nov 2018 19:44:04 -0400 Received: by mail-lf1-f66.google.com with SMTP id o2-v6so14343704lfl.13; Thu, 01 Nov 2018 07:40:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BVZgndSiBUt7yiMtAB8gRlYd3Gzye7qmzGWarjsNr1A=; b=UdLoqJS+BCWVcW21FiLZSJUASaGqJab4eUrTzDbk/XVO8JuOeZxQc1cc8nTyZXhPSK j855dbc58MDqK7FH7RN10fvLFKOjxv0ZUlhoPo7N1QizunpOEeyDBAjaUdK4sZbd1l26 XOz5v1wmKeP//g8CxKVZmYBlafWCYnlqNArRVSxSQ5Lz9trsdDktRkb3egEsyKfYk8aX 1an7qGl2hHOnOXAUrDnLPB+b9Nwtyd1F1TkXHZFYbPfuMgtmGh9jbR08jwqhueIvww3y TMCAl4kByC8r2w3kKd0o296fTdKlMDs3tWmoyBPRZDanUBY/6ijsD/iVMZGynAHl9s8f oRlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BVZgndSiBUt7yiMtAB8gRlYd3Gzye7qmzGWarjsNr1A=; b=hVTtcB6bKALc1STGT7lX82mh2OYzJfLF33bmZ0qhDyKccKQEQf6jkA2SYH/qnFovxA YyOpA+DuBu5o5vUBsF8rNtFsmn1SnySB1Rockjb091hBYMz8ZVGfhmQQ3Q6fHGXJOQY5 5bjLY9PFByhP296/gVkZCczaIKfBuOocglWcNDZ5v65LKxuLl2fjp7JUzILU3+Ns7CsF EB2rbe4tho2KiP9J9MuOHsZaxPEghCfbqCLVp/3Z7XBubeLK2KIRig5pxHSE8/gVcTr2 ALYlwnJ1EPz3FWh6JzGxSUKV+8O4eeBogavFT5b3aR+IUoZ6kNKGhzu+xFttwLzovYPe 2cQw== X-Gm-Message-State: AGRZ1gKWQTAMPrSa82wh7W5t14X2EvsDQ8AKQe6FkNlE2VuWo5AcaY4f VIFTMP/5rEjCT7FhK9Lxuv4= X-Received: by 2002:a19:cec8:: with SMTP id e191mr4536066lfg.13.1541083247197; Thu, 01 Nov 2018 07:40:47 -0700 (PDT) Received: from neopili.qtec.com (cpe.xe-3-0-1-778.vbrnqe10.dk.customer.tdc.net. [80.197.57.18]) by smtp.gmail.com with ESMTPSA id a9sm404870lfa.19.2018.11.01.07.40.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Nov 2018 07:40:46 -0700 (PDT) From: Ricardo Ribalda Delgado To: Stephen Boyd , Alan Tull , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ricardo Ribalda Delgado Subject: [PATCH 0/5] Implement devm_of_clk_add_provider Date: Thu, 1 Nov 2018 15:40:39 +0100 Message-Id: <20181101144044.11495-1-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All Tull reported that there might be a great ammount of drivers with imbalance on clk_add_provider. This is an issue for Device tree overlays (and also a bug) https://lkml.org/lkml/2018/10/18/1103 This patchset implement a devm_ function of of_clk_add_provider, and fixes 3 drivers. Drivers like clk-gpio will be easily fixed with coccinelle if this set is accepted. (I volunteer, I want to learn how to use it, just seen the great presentations from Julia). Ricardo Ribalda Delgado (5): clk: Refactor of_clk_add_provider and of_clk_add_hw_provider clk: Create devm_of_clk_add_provider clk: fixed-factor: Use devm_of_clk_add_provider clk: fixed-rate: Use devm_of_clk_add_provider clk: gpio: Use devm_of_clk_add_provider Documentation/driver-model/devres.txt | 1 + drivers/clk/clk-fixed-factor.c | 14 ++++-- drivers/clk/clk-fixed-rate.c | 16 +++--- drivers/clk/clk-gpio.c | 2 +- drivers/clk/clk.c | 72 +++++++++++++++------------ include/linux/clk-provider.h | 11 ++++ 6 files changed, 73 insertions(+), 43 deletions(-) -- 2.19.1