Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp736330imu; Tue, 20 Nov 2018 06:14:35 -0800 (PST) X-Google-Smtp-Source: AJdET5dcIpfnsnmoEBGT4YT13C2t2MQzJHVK8HeNp7qFhTZ610XImAoMUXdMhoXm91CnOhitMNjY X-Received: by 2002:a62:6143:: with SMTP id v64mr2363311pfb.142.1542723275522; Tue, 20 Nov 2018 06:14:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542723275; cv=none; d=google.com; s=arc-20160816; b=KnJtFBbWPgRQud1s3NQF9XE9jnsEqf1g/vdh2vXKn66dkn+ST487Xbtti3kgBhBgmP ExeDuIOEKw0bLi9iEzPUsheZKvuvPy+LJ78K7pXcOAIZ02/nLFUxLQ1E3NCNYTsKkYmp oGXwspBVE1WUq13JLc0aO1cOLI9zoq/kQLUfSQrUa8jLt7tREqNDBICmu/eLjct3P53r cMRRoD0grMKCcExXza7b3GvpOzcWZy/nBvgVYVss3HKCu5IbuZqG0DmMgZpl9lM4hYMR dO8g9QwbGB41J94qQ6JxXpHcaChNk+VsSDhZacPLUz/uhzxxFIhL7Zv3Q/Q+liZyKt1/ NYqA== 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=eGYN2BPY37v13Rg3NjxK4qsF50VEz3v0EMRZPiym5n4=; b=hALLf+Kmcic40PFUM3oriYtbYyci4j4H8+cRCA0x289aUGsZNip8waW6pDw9lvK85o yaLEkOkBxMXWEoELnRf3cgJb0PdwemAMPG5baNqix+AsamJ+ZyilmIXwKuKphllSxhR6 7gdERskRrBCgImERNmfbzjmuw5cCuxyFCvO03BzcxlXOOZMPXQpvhC+dwAXab+wTPQpV diiX+0ipHjtDotO+C8Z93pDrFJ5/Zb17CBx0OA3KdTsvERdWLMw+xGIDMHldNCruiNg9 5NffnKzaLaWc07dxBLypdjNiS7JH8AtOTLZXURPxRx6GHyPGpPAhkonOG4tcQJxi6LkG t2Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ha98a2m8; 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 p126si37747608pgp.529.2018.11.20.06.14.19; Tue, 20 Nov 2018 06:14:35 -0800 (PST) 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=Ha98a2m8; 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 S1727950AbeKUAkZ (ORCPT + 99 others); Tue, 20 Nov 2018 19:40:25 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:38482 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726291AbeKUAkZ (ORCPT ); Tue, 20 Nov 2018 19:40:25 -0500 Received: by mail-pf1-f195.google.com with SMTP id q1so1058837pfi.5 for ; Tue, 20 Nov 2018 06:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=eGYN2BPY37v13Rg3NjxK4qsF50VEz3v0EMRZPiym5n4=; b=Ha98a2m8K7ohlwqvlA0xstek3AeiT8WP/n67Q2310y9rO82DskaTb1WdtTCWH+Pjok Qwt4GLk0SNC5cJ7ACDRMFGr2QVH4N8DQ4eHSR7NeLJDTbpjTVPjwpgYgKrNf+PD3K0cw 3Jhkt0IS6CHw/5sohyb3kpq+MuzIzxvxrbvFuav3gbbv9RzW2j/iyxEUYvx14BkFeLoU wKJTJl8FlJq8wH3RPuFSgNntCMB1cKKUtk88zrDmeSo/wF208BG5TuSsKMuWpITv6O6a MT6TDedpgy2N+vCYMhwihjGhx1japJ/QrmLVEltclxpV4V4C9zdmMR6DUUPDrKPDklEf CHBg== 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=eGYN2BPY37v13Rg3NjxK4qsF50VEz3v0EMRZPiym5n4=; b=des8amzdvzTJYtT7gELD9tiQJikdYhP0lqd/eaO3qfltOIUVIJ8mseH2zr90Qxw39F NUBE6AsC8sBmfDKi+0KfYPBcUBcNByzi33i5ldYy2oZpf5Mdj4vCuA6bZIQwZQnF14pC XCOBmLucbLfjxcZwuyxdVFaesOihr5FxKBKpkqeQJ587zZwuWeFqyLknEZCxJYHWFu8D LfcFIZZr7v0LScGWRO9Kuae9nu9ikypyKkT4uH86za/S5GoYOC9mUDvV01VVwTY3dr+v CFmuVEeHW8ncosYEuNIJCbRPeao671gtWh1oVG6NTwWUBM9KC7k0zAInX5EJRS2XBTSX xgmg== X-Gm-Message-State: AA+aEWYnmSW0c1ldrVbsIU7mPux5kUqk+DWFC7+MswJdbGe66kq26TBH 8Sn3hmd4vgUejrv3HBMt+oxMTFKfHDE= X-Received: by 2002:a63:7306:: with SMTP id o6mr1981923pgc.343.1542723065170; Tue, 20 Nov 2018 06:11:05 -0800 (PST) Received: from localhost (68.168.130.77.16clouds.com. [68.168.130.77]) by smtp.gmail.com with ESMTPSA id n7sm9913809pff.36.2018.11.20.06.11.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Nov 2018 06:11:04 -0800 (PST) From: Yangtao Li To: palmer@sifive.com, aou@eecs.berkeley.edu, dmitriy@oss-tech.org, atish.patra@wdc.com, tglx@linutronix.de Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Yangtao Li Subject: [PATCH] RISC-V: add of_node_put() Date: Tue, 20 Nov 2018 09:11:02 -0500 Message-Id: <20181120141102.20534-1-tiny.windzz@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org use of_node_put() to release the refcount. Signed-off-by: Yangtao Li --- arch/riscv/kernel/time.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/kernel/time.c b/arch/riscv/kernel/time.c index 1911c8f6b8a6..40470e669a35 100644 --- a/arch/riscv/kernel/time.c +++ b/arch/riscv/kernel/time.c @@ -26,6 +26,7 @@ void __init time_init(void) cpu = of_find_node_by_path("/cpus"); if (!cpu || of_property_read_u32(cpu, "timebase-frequency", &prop)) panic(KERN_WARNING "RISC-V system with no 'timebase-frequency' in DTS\n"); + of_node_put(cpu); riscv_timebase = prop; lpj_fine = riscv_timebase / HZ; -- 2.17.0