From patchwork Fri Sep 27 08:27:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 174604 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp3180419ill; Fri, 27 Sep 2019 01:28:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDXd8HetS3bzaB4ZoeRVmWPGaQF078TsKbQq8KuBd8VS1lev6iM+5yx8cWToNu66HiGlDe X-Received: by 2002:a17:906:b204:: with SMTP id p4mr6732598ejz.185.1569572889884; Fri, 27 Sep 2019 01:28:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569572889; cv=none; d=google.com; s=arc-20160816; b=0lqLghhlaJ2HALupddWveUgAGFpMs6LOQa4OFVzAWBOWUE8cYYU5DR23/x7EM8FS3e kS8HlwFkogfjSX70yghOFRxZ0u8ng7zrWgFuEVlqoHxOL0Ud3jztuLbv1syBN2jVUGt5 IYZkREIMJLBp0xTIHtJHFcH9LqL2mdzWBy7mQMmnjNE4Th/0Ks2Fdj/UjH38oxYwAoTS Ab0B/3+5m6Y4lzxGqGDaROVUMhFvZBJKNL26TwXSHndV+T2DTOXfZVJKgAtLkddJZAx0 D3I+DH8R9jP6rk+O0u6JgCaE3JpESjAtfTI0BKOe8iERaf8oDyYJ6TQp50GJtFT0Xug2 fB3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=NbFqGjxE2PnbU6z1Ec7WUi7n4X/b/Z/rHpPihB2LfiE=; b=MYe9EMse1y+f+NXZKGKQoMoBvvzlcch6xJNFF2spZSUw2D6ZUHVNp5rRmp9ouUOAlg liM9ovINFWY8Z4KP+vBD14iO3zLVbJxutedqbdUEh+9rWPPvVHt/z7N4sjt+tqoXB68a qI+wYAkIi4cL5WFQr9wQ9HJjLPGBtc1Z1lDnzR6D+v+x8WaqxCidZgH/ca0jMIMB8ROW djHCNALD/89njyvG04LLDCZ5JB1Roa/PvBQzav8xQsqen/c3+5MZzmGdlxs8HDtf93UG /YbmnlSH13DN8Nr+w310Rd3nSloTR2ynssghlfPCzlslsQu5KXtDSTQDn5GFIxgLTd1B cNmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Nr1+Uv61; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1si1155113edj.354.2019.09.27.01.28.09; Fri, 27 Sep 2019 01:28:09 -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=@linaro.org header.s=google header.b=Nr1+Uv61; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727073AbfI0I2H (ORCPT + 26 others); Fri, 27 Sep 2019 04:28:07 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:37772 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbfI0I2G (ORCPT ); Fri, 27 Sep 2019 04:28:06 -0400 Received: by mail-pl1-f196.google.com with SMTP id u20so793804plq.4 for ; Fri, 27 Sep 2019 01:28:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=NbFqGjxE2PnbU6z1Ec7WUi7n4X/b/Z/rHpPihB2LfiE=; b=Nr1+Uv61tYBYR/gUeeunQBRJzDTbsfg0GWvMsad63gteY4RtQNSRpjeTGGNkFBUVd0 eh4r8/Lw0VLOg1PBeJieR+OzvTouP0Le87sDd7coeFfMNGA/m4uRaKtHUrDnpCDJJvXs /r7TGahl1/9m5QxvOjdrjWlikA91e3ITT6tQ/3kE8LQa5pYBxZciKifLi4qH9xvMu3hz lpBf0lZ7wph5QmxBqpdso9gt2IexvuFiNBU2YInsUjY57uDWZMWNOh3OA7fCjLkR585v EgcvZXWKp777yZplzAiK7Vksf3N5viFUkOGC0LjBqfGPVZE7RrcAStM3v9FnrZ45OtYm bkGg== 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; bh=NbFqGjxE2PnbU6z1Ec7WUi7n4X/b/Z/rHpPihB2LfiE=; b=Ns+Pb6LBTV36N/kjhV6tWz3QTOx48UmXYwpuQiGrulZgzs8luXKHYmABmP1yULP2yB GJrkwGVKNsu5dUvpoC6HYLm3W6KXbxMSq2BlahzK4t9GSStKpLItMsMI46c29yRghG3S a7E8Iwqy1XZNMmYrEdZWgxQ2DJ0sx+Z649Q/PIbAZrBuM5sSEmeKPtC7DL0UtXUlLeuZ cIQFSr1m/GjGEBqwkwCT78o82zvIWtrt/cdecdxsoESrBP2i4wQ3g8T33RVPa2GBiA9t 1vk2cR2JyUbJJkDk/NkJG16do8ma+aTISUFI87fENMrGHb8TBg3dnI54mvAFctl1NuO2 CIIA== X-Gm-Message-State: APjAAAVdYP8JSxRJYR3TsLOXzqTsZLbcGO6BQQ7hmSBJwyYo1UmTk/Ye OzGo8A01OoVaS7GsD+heSisbLg== X-Received: by 2002:a17:902:d887:: with SMTP id b7mr3087377plz.297.1569572886073; Fri, 27 Sep 2019 01:28:06 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id 6sm2043521pfa.162.2019.09.27.01.28.02 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Sep 2019 01:28:04 -0700 (PDT) From: Baolin Wang To: linus.walleij@linaro.org, ohad@wizery.com, bjorn.andersson@linaro.org Cc: baolin.wang@linaro.org, linux-arm-kernel@lists.infradead.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] Optimize the u8500_hsem hwlock driver Date: Fri, 27 Sep 2019 16:27:40 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set did some Optimization with changing to use devm_xxx() APIs to simplify the code and make code more readable. Baolin Wang (3): hwspinlock: u8500_hsem: Change to use devm_platform_ioremap_resource() hwspinlock: u8500_hsem: Use devm_kzalloc() to allocate memory hwspinlock: u8500_hsem: Use devm_hwspin_lock_register() to register hwlock controller drivers/hwspinlock/u8500_hsem.c | 46 +++++++++++---------------------------- 1 file changed, 13 insertions(+), 33 deletions(-) -- 1.7.9.5