From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ddLaP-0002p8-VF for barebox@lists.infradead.org; Thu, 03 Aug 2017 19:15:11 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Thu, 3 Aug 2017 21:14:38 +0200 Message-Id: <20170803191438.24473-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] clk: imx: cpu: don't store the address of a function parameter To: barebox@lists.infradead.org Cc: Andrey Smirnov VGhlIGZ1bmN0aW9uIGlteF9jbGtfY3B1IHRha2VzIGEgY29uc3QgY2hhciAqcGFyZW50X25hbWUg YXMgc2Vjb25kCnBhcmFtdGVyLiBUaGUgaW1wbGVtZW50YXRpb24gaW50cm9kdWNlZCBpbiBjb21t aXQgOWE4OWVkOWQyODFlIHRoZW4KdXNlcyB0aGUgYWRkcmVzcyBvZiB0aGlzIGZ1bmN0aW9uIHBh cmFtZXRlciB0byBhc3NpZ24gY2xrLnBhcmVudF9uYW1lcy4KVGhpcyBpcyBhbiBhZGRyZXNzIG9u IHRoZSBzdGFjayB0aGF0IGlzIHNhdmVkIGluIHRoZSBjbGsgdHJlZSBhbmQgb2YKY291cnNlIHRo aXMgaXMgZWFzaWx5IG92ZXJ3cml0dGVuIGJ5IGxhdGVyIGV4ZWN1dGlvbiBwYXRocyBvZiBiYXJl Ym94LgoKV2l0aG91dCB0aGlzIGZpeCB0aGUgY2xrX2R1bXAgY29tbWFuZCByZXByb2R1Y2libHkg Y3Jhc2hlcyBvbiBpLk1YNwood2hpY2ggaXMgdGhlIG9ubHkgU29D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