Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76A14C433F5 for ; Fri, 26 Nov 2021 14:42:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377805AbhKZOpj (ORCPT ); Fri, 26 Nov 2021 09:45:39 -0500 Received: from mout.gmx.net ([212.227.17.22]:53935 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377736AbhKZOni (ORCPT ); Fri, 26 Nov 2021 09:43:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1637937610; bh=aivfgVJGYJA3M4zTVSJx0lVs5qEnmFfDIA+NXAOCsW4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=BHL7+Bn3V2UbD/qCjVEC4b6fw5u3ixR3LxhjGuC5Sdpr5akIQ3nwNytM/SdP0VWLz ImfN+9zlDT0SMj/HKJVwbNp0oJ6rtn9oGVIlY9ElTYpLnkMz6df4G6G8wjrvMMHUCD J3rHBR6Vt9AcJJi58UH3hm71JBXjVRRu1EJ9Znz8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([46.223.119.124]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MyKHc-1mgVXC1wCK-00yeyN; Fri, 26 Nov 2021 15:40:10 +0100 From: Lino Sanfilippo To: gregkh@linuxfoundation.org Cc: linux@armlinux.org.uk, jirislaby@kernel.org, p.rosenberger@kunbus.com, lukas@wunner.de, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Lino Sanfilippo Subject: [PATCH] serial: amba-pl011: do not request memory region twice Date: Fri, 26 Nov 2021 15:39:25 +0100 Message-Id: <20211126143925.18758-1-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:q06nxNUSDkpdGRw3TjBAr0L5n/H5X3LkSf3ICnEfVhY53iUwVrh EuoGc8ljihAjsFjBTfgLGVxYmHyhQTJnGzLTUvnrcrvG0uZJRw9h6ia8x/QMBg7q1vAKRfv MhOMQ2OBcAx2ozY6iBAQHUAz2Ia38M3onaaDziXnUdKmNCWBZ513+Xy1p++ZFsvkKt7Z5a0 nY07ShsSsKvbElHMCJQEw== X-UI-Out-Filterresults: notjunk:1;V03:K0:a0NMEAqkvzc=:jh2xhgPGQxeSiKXr1sj5qk yRtMfCvqkZIiIFqYuYWhCVfklsvxROBvlA3HhpJPt/Ka+N51XfVOj97gnw+KJsfFTWlwgK0f8 qX7wogJsnrblTsVHixZVcOoFKXfcmIBvkGnXT4niGlYv2Po/fNegOLJS6+CS6TyQ24j8SKliW KA1JxRzFe3p/yH4Uz/oALW0ZOiAfo0VQKTZSXjnHTERxcHIbVMWeDYqKSYbRS3Dz+BhhZCE3x A0Tc48KlAV/2SuST3iuKsn/y938FH/WiGa25ruo5ao7Uj/R9/2jVW/Os5OZr2lZJU9gNiW9WB u0gZJk7mj8y41oxWE4adkIAyTjSv+dAZx521zAl6CCuSdwAckGxDAedMsnMq/oC8t5IJhusRP 0wBXFIilQB1VFSWsWAx6iTqyTLkpFPshQN9DxK8C+coej39IRPEOd83gla+TeCzr7ZL9U+8dR BBAmIHyy9DkcR0m+AXkeHk1cJJADFaqiEt6yLJaQpwfKf/zmZIb7sNaL+FOWLd4nCqKeES9NL AnQBOAUZAPmsBxa9Sz05RxN9yKn8lCCEuY54cFCqtv/4pIW9v6JY0AXk7csb9sYantL8WQZxh nas5tXV+cdzYS9TiAbzwNC1MWE+8FPwuJg06BPGOcPLXuExrBqQAvAdZiawBTm8q3JDLMWuhp zVg216kmGxBMw7yPhIzhjHT/XmYF88h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