From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from m15-114.126.com ([220.181.15.114]) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bGeef-0001OG-Mh for barebox@lists.infradead.org; Sat, 25 Jun 2016 03:53:16 +0000 From: zzs213@126.com Date: Sat, 25 Jun 2016 11:53:00 +0800 Message-Id: <1466826780-23656-1-git-send-email-zzs213@126.com> 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] fix IORESOURCE_MEM_xxx usage in dm9k driver To: barebox@lists.infradead.org RnJvbTog5byg5b+g5bGxIDx6enMyMTNAMTI2LmNvbT4KCkJlY2F1c2UgdGhlIGNvbnN0IHVzZWQg aW4gZG05ayBkcml2ZXIgdW5tYXRjaCB0aGUgbmV3IElPUkVTT1VSQ0VfTUVNX3h4eAptYWNyby4g U28gd2hlbmV2ZXIgdGhlIGRyaXZlciBzdGFydCBwcm9iZSwgdGhlIGZsb3d3aW5nIGVycm9yIG1l c3NhZ2UKYXBwZWFyOgoKICAgICAgICBXcm9uZyBpbyByZXNvdXJjZSBzaXplCgpUaGlzIHBhdGNo IGZpeCB0aGlzLgoKU2lnbmVkLW9mZi1ieTog5byg5b+g5bGxIDx6enMyMTNAMTI2LmNvbT4KLS0t CiBkcml2ZXJzL25ldC9kbTlrLmMgfCAxNCArKysrKy0tLS0tLS0tLQogMSBmaWxlIGNoYW5nZWQs IDUgaW5zZXJ0aW9ucygrKSwgOSBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9kcml2ZXJzL25l dC9kbTlrLmMgYi9kcml2ZXJzL25ldC9kbTlrLmMKaW5kZXggYWQ0MDJlMy4uN2E0MTg2OCAxMDA2 NDQKLS0tIGEvZHJpdmVycy9uZXQvZG05ay5j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