Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4743227pjb; Mon, 27 Jul 2020 04:08:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7RRXbjbv5j72r59nPSMYL/jD7IISXmmeHaZmqCGn1QBACQ+sdrhhPjpzsOHcOca1MFXLG X-Received: by 2002:a17:906:398f:: with SMTP id h15mr21276874eje.391.1595848083939; Mon, 27 Jul 2020 04:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595848083; cv=none; d=google.com; s=arc-20160816; b=DftPSksXy/TJo6ejfsNN1rAuyzuHko2pzp+bmz5iNEcGjt+qkMrCNW4oRweOrWHUYe 5n+UOFXMI5FXNLegjQ56o778/mWEqcYxmoRw5zeiMEg0YYOgwsq5r4PUr7KBqCj2Wbaw Bbm0SqAFoEPEkZwbOkUzTjVabVC+F2Bp4zDhH5LtpbW30XFlNvvAK+v1pFp545Xrbqdl 3y3LL+oJ7j/mUmBMiczJY8zuPkTvs49EgfazwEdBdxiSJnEXxKe+nNTnB581lWopN8ka LJIv21o1E/yosATEmOkcWmv3gOHIyhFRyA0wdaxroxbPMMTDqRAh4bOTT3LJLtPXWfCk ipkw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=wTHC9UuckyQC5uW34/shG2RNgyejKANkqKTkgf4MzbQ=; b=J+qEELcChuAaE5jM6GcMqJEAZZeu9lXPf+ZXTZXThvRhMU3A8c143sXB5jWyBqYFuM Y0ElkhaLypkwRePTOerb8APKacbEdewGehpjONlMihhHQX9cTfSx5TQFBzL8Po/p9oco hwchDJ/cRaopYcfmBbokSOCReXR1F/Ztx6Gc6hHxQBCv3E6MNkIadJnmSJ/7YVnLqn+2 gvYH1IPxe32tRauQlNYyj5cQbf0v6u4RWfzrWp+tIBJWTga6skJqK2CNbguZSEFWR10Q QwL5uMepmD16h4dCfCi3FHY9LuO/Tgy4E3ESVY5KbZ6CRUcCVwKrt6CH2CrgjnYeWze9 gsDQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w2si5446872edt.433.2020.07.27.04.07.41; Mon, 27 Jul 2020 04:08:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728465AbgG0LBs (ORCPT + 99 others); Mon, 27 Jul 2020 07:01:48 -0400 Received: from mailout10.rmx.de ([94.199.88.75]:50208 "EHLO mailout10.rmx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728448AbgG0LBr (ORCPT ); Mon, 27 Jul 2020 07:01:47 -0400 Received: from kdin01.retarus.com (kdin01.dmz1.retloc [172.19.17.48]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout10.rmx.de (Postfix) with ESMTPS id 4BFcLs4pvGz311B; Mon, 27 Jul 2020 13:01:41 +0200 (CEST) Received: from mta.arri.de (unknown [217.111.95.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by kdin01.retarus.com (Postfix) with ESMTPS id 4BFcKZ5qFvz2xFb; Mon, 27 Jul 2020 13:00:34 +0200 (CEST) Received: from N95HX1G2.wgnetz.xx (192.168.54.121) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 27 Jul 2020 12:59:12 +0200 From: Christian Eggers To: Rob Herring , Shawn Guo , "Sascha Hauer" CC: Christian Eggers , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Matt Mackall , Herbert Xu , Arnd Bergmann , "Greg Kroah-Hartman" , Martin Kaiser , PrasannaKumar Muralidharan , Anson Huang , , , , Subject: [PATCH 2/3] hwrng: imx-rngc - make clock optional Date: Mon, 27 Jul 2020 12:57:15 +0200 Message-ID: <20200727105718.26225-3-ceggers@arri.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200727105718.26225-1-ceggers@arri.de> References: <20200727105718.26225-1-ceggers@arri.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.54.121] X-RMX-ID: 20200727-130034-4BFcKZ5qFvz2xFb-0@kdin01 X-RMX-SOURCE: 217.111.95.66 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On i.MX6 ULL the RNGB has no switchable clock. Signed-off-by: Christian Eggers --- drivers/char/hw_random/imx-rngc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hw_random/imx-rngc.c b/drivers/char/hw_random/imx-rngc.c index 9c47e431ce90..f9c5ddd0276b 100644 --- a/drivers/char/hw_random/imx-rngc.c +++ b/drivers/char/hw_random/imx-rngc.c @@ -245,7 +245,7 @@ static int imx_rngc_probe(struct platform_device *pdev) if (IS_ERR(rngc->base)) return PTR_ERR(rngc->base); - rngc->clk = devm_clk_get(&pdev->dev, NULL); + rngc->clk = devm_clk_get_optional(&pdev->dev, NULL); if (IS_ERR(rngc->clk)) { dev_err(&pdev->dev, "Can not get rng_clk\n"); return PTR_ERR(rngc->clk); -- Christian Eggers Embedded software developer Arnold & Richter Cine Technik GmbH & Co. Betriebs KG Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRA 57918 Persoenlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRB 54477 Geschaeftsfuehrer: Dr. Michael Neuhaeuser; Stephan Schenk; Walter Trauninger; Markus Zeiler