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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id AF854C433EF for ; Wed, 1 Dec 2021 20:13:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ECDFF830D4; Wed, 1 Dec 2021 21:13:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="kbq1UdNH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A6B20830C4; Wed, 1 Dec 2021 21:13:33 +0100 (CET) Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) (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 4DA2E830D4 for ; Wed, 1 Dec 2021 21:13:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qk1-x72e.google.com with SMTP id t83so32357404qke.8 for ; Wed, 01 Dec 2021 12:13:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cdLEHDlpbjRz/bG6W0bKup3Wd9NgJP95teQbLQdyJFU=; b=kbq1UdNHB3yDjty9xvuaeCHu3qtAbvzm7rVuCtrB0X7+ZEx3qfuCaj2ueWNFju15VE AFFPqwk3bBe9yJQ79UziGhPX9ii4ejIaD0bk6ACEbCUp1d3geLvFsxDgFpgtF17sJeUo /oLeWneSOkBiSZP4/E/+SK4Nv3I1Mv24nyXr2SbPgu6BKOOQpiCATg5vO6nbmWKT2F66 LZ+wnfztMShcRs1FoYWn5bey7dtxJpMEqtmqZ0+j9i1CkkRFDozt+9ZEIB51fPFc6fMG eBfrCBqJuLeht/pbKwAwkgazmhg2ozpMj3JvVm57T5mVfDDABVmO/ADokPWfh3QMB6NK XDWA== 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:mime-version :content-transfer-encoding; bh=cdLEHDlpbjRz/bG6W0bKup3Wd9NgJP95teQbLQdyJFU=; b=yfjm6IHLfJYZe90ynv+c0IZ3cKFBvxwjKi6u2PN3Y6bXicYJ42MEL3dMGQkhBP540D 6bd1mQDUKeXZqIIZafLN/0ZSlY54Llx1dH/M65shs72xUbZgz17Cvf9mloRYCmAmCZBP ZYSJQXm1bG3UROcBidAzT8cL8+gvdOxfbQhoEe7MIIuW1mAfPyqd+9pu3sZFzUjLEtas TNF4dW9TtzGULfQTBwhQGw68O1K071/wA09rND8Yw6L1UP1nggCqZXEiLTEaAY2HZpGo 4Op2hSvcHEwL+dF9Tgs459xpr3SkLHRW2Kiz3AT/piGwr9WZ/zOModE3eFieWCAgPn9M DsUg== X-Gm-Message-State: AOAM530tR58LdxXih9TNSwxS3+DJeYVd2GXaiKBXe73bSHhJpACxbtSA xQBd4S/xzEgfhIkyDhZUh2hnD+HIrog= X-Google-Smtp-Source: ABdhPJzGHo8drIX1Rr/8/6cNHUvgA5bcBgc3GXpU5Vxl1qiubIipHN0Y6txpPWtX2wb27SdqOVhVUw== X-Received: by 2002:a05:620a:40d1:: with SMTP id g17mr8678869qko.621.1638389609090; Wed, 01 Dec 2021 12:13:29 -0800 (PST) Received: from godwin.fios-router.home (pool-108-18-207-184.washdc.fios.verizon.net. [108.18.207.184]) by smtp.gmail.com with ESMTPSA id f34sm434520qtb.7.2021.12.01.12.13.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 12:13:28 -0800 (PST) From: Sean Anderson To: u-boot@lists.denx.de Cc: Adam Ford , Lukasz Majewski , Sean Anderson Subject: [PATCH] clk: versaclock: Remove xlate function Date: Wed, 1 Dec 2021 15:13:17 -0500 Message-Id: <20211201201317.2174547-1-seanga2@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 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 This function is the same as the default xlate. Remove it. Signed-off-by: Sean Anderson --- drivers/clk/clk_versaclock.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/drivers/clk/clk_versaclock.c b/drivers/clk/clk_versaclock.c index 578668bcf8..26c014cc4f 100644 --- a/drivers/clk/clk_versaclock.c +++ b/drivers/clk/clk_versaclock.c @@ -618,24 +618,6 @@ static int vc5_clk_out_set_parent(struct vc5_driver_data *vc, u8 num, u8 index) return vc5_update_bits(vc->i2c, VC5_OUT_DIV_CONTROL(num), mask, src); } -/* - * The device references to the Versaclock point to the head, so xlate needs to - * redirect it to clk_out[idx] - */ -static int vc5_clk_out_xlate(struct clk *hw, struct ofnode_phandle_args *args) -{ - unsigned int idx = args->args[0]; - - if (args->args_count != 1) { - debug("Invaild args_count: %d\n", args->args_count); - return -EINVAL; - } - - hw->id = idx; - - return 0; -} - static unsigned long vc5_clk_out_set_rate(struct clk *hw, unsigned long rate) { struct udevice *dev; @@ -671,7 +653,6 @@ static const struct clk_ops vc5_clk_out_sel_ops = { static const struct clk_ops vc5_clk_ops = { .enable = vc5_clk_out_prepare, .disable = vc5_clk_out_unprepare, - .of_xlate = vc5_clk_out_xlate, .set_rate = vc5_clk_out_set_rate, .get_rate = vc5_clk_out_get_rate, }; -- 2.33.0