From mboxrd@z Thu Jan 1 00:00:00 1970 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA061C433EF for ; Fri, 1 Oct 2021 05:10:30 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 401F761A57 for ; Fri, 1 Oct 2021 05:10:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 401F761A57 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 46D7A834F2; Fri, 1 Oct 2021 07:05:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="GnsdGf1O"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D094D83230; Fri, 1 Oct 2021 07:05:25 +0200 (CEST) Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 52BEB83165 for ; Fri, 1 Oct 2021 07:05:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pl1-x634.google.com with SMTP id c4so5538942pls.6 for ; Thu, 30 Sep 2021 22:05:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6MEGdxi745RsEp0C1/1GgabgXJFBoip4chk54RcwxKw=; b=GnsdGf1O/QXYeZ2w6/S6i/ovo3EqqzHjtK3wTRy+OohigadShWgAW2WGnHliu/oHCj coM/sIvBs/B9zpvHzI9WuSBOI2wd+d0f7ULFP5ZAB6zjJGSeyzpt6nivoC1ojIhLCsuK nQfCAUgy2fbIRhuHGVj/V2AYsjE96zVLh43tQ1RIhf6+JBFO37Wps0VBZNh6oK4d3guu y/15JhICXW0GSoCcuaF2OiwNHfLZ6fdk4l1WtR4Dr50+vSuoCoNG+nftPp9TvebhgyOD nB+XgqiD8EAUDtUYANfsC+sj/ki1h301yJV8lbLIbqvEwhKbAyS0D8vsdqNRCi2I7aCK KYIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6MEGdxi745RsEp0C1/1GgabgXJFBoip4chk54RcwxKw=; b=BwfTY4GghEJVOfo8hakC1rG6CZUhNfVL+RDg8Wa9tawDLhiGcSj3gFi1tbKfnU9RkG lRoWOLJ+LNjiW+/VDQRMapXPG6Qs7XGD8h3bNJfJ6ziEcM3WO/bcL711/MbmssRzMitS EGO6ONGm99Yen0tpx3jip5GNHg/G34IDiJ8zEnCQcgQJrFXucmWxSJkavGx46mou245N 36Sc7D/Y3o8bpPpvM+vl/uNAQlI2BfBSuwKAgHzlp9hRjpTmpK2hzjElXe77XjEk2j1Z tQTtz0+znThRXARakfLyBHTJzJHyRcPbwMkBVoHvpI4jSbfqq7sEBP/qbpNpRt368ygy O8RA== X-Gm-Message-State: AOAM530uv/uDEER9aDdwetrv29sD0AtKTxORXL9aFm7Vz9EV9UkXU/nj VoDv3RRE5h7rfpw0BAxNLpbhfg== X-Google-Smtp-Source: ABdhPJzkBq0LqlPNuqJcGtTCX1xRRVgGBqYa8GZswWiWVltB34Hmj6ICe5bPU5309fM5ygfL++8aAw== X-Received: by 2002:a17:902:7613:b0:13d:b35f:b4d7 with SMTP id k19-20020a170902761300b0013db35fb4d7mr9303397pll.8.1633064710535; Thu, 30 Sep 2021 22:05:10 -0700 (PDT) Received: from localhost.localdomain (122-100-26-52m5.mineo.jp. [122.100.26.52]) by smtp.gmail.com with ESMTPSA id z8sm4615113pgc.53.2021.09.30.22.05.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 22:05:10 -0700 (PDT) From: AKASHI Takahiro To: xypron.glpk@gmx.de, agraf@csgraf.de, sjg@chromium.org, ilias.apalodimas@linaro.org Cc: u-boot@lists.denx.de, AKASHI Takahiro Subject: [RFC 21/22] efi_driver: cleanup after efi_disk-dm integration Date: Fri, 1 Oct 2021 14:02:25 +0900 Message-Id: <20211001050228.55183-42-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211001050228.55183-1-takahiro.akashi@linaro.org> References: <20211001050228.55183-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean efi_driver-specific binding will be no longer needed now that efi_disk- dm integration takes care of efi_driver case as well. Signed-off-by: AKASHI Takahiro --- lib/efi_driver/efi_block_device.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/lib/efi_driver/efi_block_device.c b/lib/efi_driver/efi_block_device.c index b6afa939e1d1..1f39c93f7754 100644 --- a/lib/efi_driver/efi_block_device.c +++ b/lib/efi_driver/efi_block_device.c @@ -106,25 +106,6 @@ static ulong efi_bl_write(struct udevice *dev, lbaint_t blknr, lbaint_t blkcnt, return blkcnt; } -/** - * Create partions for the block device. - * - * @handle: EFI handle of the block device - * @dev: udevice of the block device - * Return: number of partitions created - */ -static int efi_bl_bind_partitions(efi_handle_t handle, struct udevice *dev) -{ - struct blk_desc *desc; - const char *if_typename; - - desc = dev_get_uclass_plat(dev); - if_typename = blk_get_if_type_name(desc->if_type); - - return efi_disk_create_partitions(handle, desc, if_typename, - desc->devnum, dev->name); -} - /** * Create a block device for a handle * @@ -139,7 +120,6 @@ static int efi_bl_bind(efi_handle_t handle, void *interface) char *name; struct efi_object *obj = efi_search_obj(handle); struct efi_block_io *io = interface; - int disks; struct efi_blk_plat *plat; EFI_PRINT("%s: handle %p, interface %p\n", __func__, handle, io); @@ -184,10 +164,6 @@ static int efi_bl_bind(efi_handle_t handle, void *interface) return ret; EFI_PRINT("%s: block device '%s' created\n", __func__, bdev->name); - /* Create handles for the partions of the block device */ - disks = efi_bl_bind_partitions(handle, bdev); - EFI_PRINT("Found %d partitions\n", disks); - return 0; } -- 2.33.0