From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ft2Dx-0005Nh-HU for barebox@lists.infradead.org; Fri, 24 Aug 2018 02:53:24 +0000 Received: by mail-pg1-x542.google.com with SMTP id h8-v6so3606026pgs.4 for ; Thu, 23 Aug 2018 19:53:16 -0700 (PDT) From: Andrey Smirnov Date: Thu, 23 Aug 2018 19:52:27 -0700 Message-Id: <20180824025243.19479-9-andrew.smirnov@gmail.com> In-Reply-To: <20180824025243.19479-1-andrew.smirnov@gmail.com> References: <20180824025243.19479-1-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2 08/24] ARM: i.MX: bbu: Simplify imx53_bbu_internal_nand_register_handler() To: barebox@lists.infradead.org Cc: Andrey Smirnov Second parameter of __init_handler() will initialize handler.devicefile for us, so there's no need to to it explicitly after. Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/imx-bbu-internal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/imx-bbu-internal.c b/arch/arm/mach-imx/imx-bbu-internal.c index 1041a0673..add353914 100644 --- a/arch/arm/mach-imx/imx-bbu-internal.c +++ b/arch/arm/mach-imx/imx-bbu-internal.c @@ -502,11 +502,10 @@ int imx53_bbu_internal_nand_register_handler(const char *name, { struct imx_internal_bbu_handler *imx_handler; - imx_handler = __init_handler(name, NULL, flags); + imx_handler = __init_handler(name, "/dev/nand0", flags); imx_handler->flash_header_offset = FLASH_HEADER_OFFSET_MMC; imx_handler->expected_type = filetype_imx_image_v2; - imx_handler->handler.devicefile = "/dev/nand0"; imx_handler->device_size = partition_size; imx_handler->write_device = imx_bbu_internal_v2_write_nand_dbbt; -- 2.17.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox