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.80.1 #2 (Red Hat Linux)) id 1Zo7bp-0005bD-VX for barebox@lists.infradead.org; Mon, 19 Oct 2015 10:24:06 +0000 From: Marc Kleine-Budde Date: Mon, 19 Oct 2015 12:23:36 +0200 Message-Id: <1445250220-28239-3-git-send-email-mkl@pengutronix.de> In-Reply-To: <1445250220-28239-1-git-send-email-mkl@pengutronix.de> References: <1445250220-28239-1-git-send-email-mkl@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/6] state: return -EPROBE_DEFER if the backend isn't available To: barebox@lists.infradead.org Cc: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= RnJvbTogVXdlIEtsZWluZS1Lw7ZuaWcgPHUua2xlaW5lLWtvZW5pZ0BwZW5ndXRyb25peC5kZT4K ClNpZ25lZC1vZmYtYnk6IFV3ZSBLbGVpbmUtS8O2bmlnIDx1LmtsZWluZS1rb2VuaWdAcGVuZ3V0 cm9uaXguZGU+ClNpZ25lZC1vZmYtYnk6IE1hcmMgS2xlaW5lLUJ1ZGRlIDxta2xAcGVuZ3V0cm9u aXguZGU+Ci0tLQogZHJpdmVycy9taXNjL3N0YXRlLmMgfCA0ICsrKy0KIDEgZmlsZSBjaGFuZ2Vk LCAzIGluc2VydGlvbnMoKyksIDEgZGVsZXRpb24oLSkKCmRpZmYgLS1naXQgYS9kcml2ZXJzL21p c2Mvc3RhdGUuYyBiL2RyaXZlcnMvbWlzYy9zdGF0ZS5jCmluZGV4IDdhMzMwMzI2NDIwNi4uZjMw OTZmYzI3MDk4IDEwMDY0NAotLS0gYS9kcml2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