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.89 #1 (Red Hat Linux)) id 1ecUFZ-0004oc-D9 for barebox@lists.infradead.org; Fri, 19 Jan 2018 10:50:23 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Fri, 19 Jan 2018 11:50:03 +0100 Message-Id: <20180119105004.12204-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 1/2] mci: drop unused parameter from mci_switch() To: barebox@lists.infradead.org VGhlIFNXSVRDSCBjb21tYW5kIGhhcyB0d28gcHVycG9zZXM6CiBhKSBzd2l0Y2ggdGhlIGNvbW1h bmQgc2V0CiBiKSBXcml0ZSB0byB0aGUgRVhUX0NTRCByZWdpc3RlcgoKSWYgdGhlIGFjY2VzcyBm aWVsZCAoYml0cyBbMjU6MjRdKSBpbiB0aGUgYXJndW1lbnQgYXJlIGIwMCwgd2UncmUgaW4KY2Fz ZSBhKSwgb3RoZXJ3aXNlIGluIGIpLiBBcyBtY2lfc3dpdGNoKCkgYWx3YXlzIHBhc3NlcwpNTUNf U1dJVENIX01PREVfV1JJVEVfQllURSAoMGIzKSBpbiB0aGUgYWNjZXNzIGZpZWxkLCBvbmx5IGNh c2UgYikgaXMKcmVsZXZhbnQgaGVyZS4gQWNjb3JkaW5nIHRvIHRoZSBlTU1DIHNwZWNpZmljYXRp b25bMV0gdGhlIGNvbW1hbmQgc2V0CmZpZWxkIGlzIGlnbm9yZWQgaW4gY2FzZSBiKSBhbmQgc28g dGhlIHJlc3BlY3RpdmUgcGFyYW1ldGVyICh0aGF0IGlzCnVudXNlZCBhbH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