From nobody Fri Jul 4 13:16:10 2025 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1496904965375789.6391010735389; Wed, 7 Jun 2017 23:56:05 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id DDE2920945543; Wed, 7 Jun 2017 23:54:49 -0700 (PDT) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 909EB20945533 for ; Wed, 7 Jun 2017 23:54:48 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP; 07 Jun 2017 23:55:57 -0700 Received: from shwde7172.ccr.corp.intel.com ([10.239.9.14]) by FMSMGA003.fm.intel.com with ESMTP; 07 Jun 2017 23:55:55 -0700 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,313,1493708400"; d="scan'208";a="865773791" From: Liming Gao To: edk2-devel@lists.01.org Date: Thu, 8 Jun 2017 14:55:38 +0800 Message-Id: <1496904940-11364-3-git-send-email-liming.gao@intel.com> X-Mailer: git-send-email 2.8.0.windows.1 In-Reply-To: <1496904940-11364-1-git-send-email-liming.gao@intel.com> References: <1496904940-11364-1-git-send-email-liming.gao@intel.com> Subject: [edk2] [PATCH staging][BaseToolsOpt 2/4] OvmfPkg: Update QemuVideo and VirtioGpuDxe to use NULL as DriverBindingHandle X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" To combine two drivers into one, they can't share ImageHandle as DriverBindingHandle. So, update their code to use NULL as DriverBindingHand= le. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao --- OvmfPkg/QemuVideoDxe/Driver.c | 2 +- OvmfPkg/VirtioGpuDxe/DriverBinding.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OvmfPkg/QemuVideoDxe/Driver.c b/OvmfPkg/QemuVideoDxe/Driver.c index fc8025e..ce66c02 100644 --- a/OvmfPkg/QemuVideoDxe/Driver.c +++ b/OvmfPkg/QemuVideoDxe/Driver.c @@ -954,7 +954,7 @@ InitializeQemuVideo ( ImageHandle, SystemTable, &gQemuVideoDriverBinding, - ImageHandle, + NULL, &gQemuVideoComponentName, &gQemuVideoComponentName2 ); diff --git a/OvmfPkg/VirtioGpuDxe/DriverBinding.c b/OvmfPkg/VirtioGpuDxe/Dr= iverBinding.c index 33c1ad3..908bd1d 100644 --- a/OvmfPkg/VirtioGpuDxe/DriverBinding.c +++ b/OvmfPkg/VirtioGpuDxe/DriverBinding.c @@ -839,6 +839,6 @@ VirtioGpuEntryPoint ( ) { return EfiLibInstallDriverBindingComponentName2 (ImageHandle, SystemTabl= e, - &mDriverBinding, ImageHandle, NULL /* ComponentName */, + &mDriverBinding, NULL, NULL /* ComponentName */, &mComponentName2); } --=20 2.8.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel