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.92 #3 (Red Hat Linux)) id 1i1tvW-0005zw-0R for barebox@lists.infradead.org; Sun, 25 Aug 2019 14:55:31 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Sun, 25 Aug 2019 16:55:17 +0200 Message-Id: <20190825145517.5546-2-u.kleine-koenig@pengutronix.de> In-Reply-To: <20190825145517.5546-1-u.kleine-koenig@pengutronix.de> References: <20190825145517.5546-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 2/2] reset_source: drop reset_source_set_instance() To: barebox@lists.infradead.org VGhlIHNlbWFudGljIG9mIHJlc2V0X3NvdXJjZV9zZXRfaW5zdGFuY2UoKSByZXF1aXJlZCBhIHNl cGFyYXRlIGNhbGwgdG8KcmVzZXRfc291cmNlX3NldCgpIChvciByZXNldF9zb3VyY2Vfc2V0X3By aW9yaXR5KCkpIGFuZCBjaGVja2VkIHJpZ2h0CnVzYWdlIG9ubHkgdXNpbmcgdGhlIHR5cGUuIE1h a2UgdGhlIHNldCBvZiBmdW5jdGlvbnMgYSBiaXQgZWFzaWVyIHRvIHVzZQpieSBkcm9wcGluZyBy ZXNldF9zb3VyY2Vfc2V0X2luc3RhbmNlKCkgYW5kIGluc3RlYWQgaW50cm9kdWNlIGEgZnVuY3Rp b24KdGhhdCBjYW4gc2V0IGFsbCByZWxldmFudCBwYXJhbWV0ZXJzIChzb3VyY2UsIHByaW9yaXR5 IGFuZCBpbnN0YW5jZSkgaW4Kb25lIGdvLgoKU2lnbmVkLW9mZi1ieTogVXdlIEtsZWluZS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