From patchwork Sat Nov 29 16:57:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 2170158 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=f7NYHYXI; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45e3:2400::1; helo=sv.mirrors.kernel.org; envelope-from=linux-i2c+bounces-14342-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [IPv6:2604:1380:45e3:2400::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4dJbxm0YSwz1yDy for ; Sun, 30 Nov 2025 03:59:56 +1100 (AEDT) Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 45F013A666C for ; Sat, 29 Nov 2025 16:59:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBF613101B6; Sat, 29 Nov 2025 16:58:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="f7NYHYXI" X-Original-To: linux-i2c@vger.kernel.org Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C6323101A0 for ; Sat, 29 Nov 2025 16:58:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764435517; cv=none; b=o+kwUyCSGblg9cC/pt55cBlDiETQUox316zoaA696uky7csIKWX97vkdITaaqL1ti8WqmI0sXFtghELh33A504q0gKiNAURA0JSK+M6S0lnZuAwsAsHnRjQIpoggLeYwcM69+YNrIci2fxScMTEmNffvhp/l2i/knQxY3vAY8Us= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764435517; c=relaxed/simple; bh=1VfHxw2ik6pzPD8vLs+mn8BWmuJDAturdWzRRyIrqd0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=MFANOwPJwWuFH0VvIO0zHLhdexJfHaTX9ndfc1CsUrBIpKXYpg+dprbM+DqwQuGNorjghe+SVZSSUJaVgGm/rQS9Jq1hLAwXte0zF1cYv7VFUBv1aIbC3rOT1k+sudWDfn2oD+pdx1qheiD2BcFyt4iiVzEPt6pAPO/Hg7Syla0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=f7NYHYXI; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-b736d883ac4so299406166b.2 for ; Sat, 29 Nov 2025 08:58:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1764435513; x=1765040313; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Gr1otfYaqpnm7bjSkZRheFMZkv0FIFM3TuO+TEbpsfc=; b=f7NYHYXIVF+qRK5HXZeSUpS5Dp4hNqsO4zS3xjXTUf0B+/uSv1atUzAwjA58sIIRDF qJa7Nub8b7y0fFZDKEUzCmgrehyiNsTFuqkLn8I5Vx7A7MAaY4CO+ZT44U2c20nLXW6Y mg5oNg7wEmXJPEHZYXOiWRqvqCQmaLERCd9C26lLCiPPwUohwQmBi2UPlo7p6M8p1Tvn YA3ze/Tlkcpcb7svir8hMkpsqdt0uBI0I9cwXHrcP9NYoeQC0iM5Aq2/zQaxXYFP/jJR qboz5I5LQL0B3nFZI9P5QbtHHD17kBLO6kw9pU9bM9Hnyq6fXecV7cDpVkdP0t/yA+N7 txuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764435513; x=1765040313; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Gr1otfYaqpnm7bjSkZRheFMZkv0FIFM3TuO+TEbpsfc=; b=eWQuPD7Bbs4oM93kD7zmpoMkpJ/qhq93sBRTSj31Piyz7YSpRi4bnjMil2Sf6x1cRd Ki7UqgrhMYuvm9pmt8D6PQF+LwXj5aHp0IoonuEGQiU6zA0XC1W89V5xI+h2IO8T0a8r KoV4sN3Sk/GFulvQwd3Nk8SntkLjiS58b5nFC8jKDgO3OxjvRxtyT4/D9C2vDWZ12WRH D8Zq8mxguESOHobOcgDiNM7txUHwxjbIWB3b21I5UgOmw0NrIfai1efvyuLfbZ0dkIIe 6r8F4sIpvBS+5Ktp38GJHRm6U+nmaStHZ0YgxA8ONTGKqcnUy+JYLJvXGptHkenZg9zs jAHQ== X-Forwarded-Encrypted: i=1; AJvYcCUCPKXURKg4T91/q7vwgC/HCCvg6HiDkG7pU7lyGNOLOZDBE9vKwtYnnaCHVKu97gPftbu/aVSYGnk=@vger.kernel.org X-Gm-Message-State: AOJu0YyY1ct/v7eTmYkxGos7SXz6sfdYiz/rYlnH93GimsPlkJ4izSf0 Nqrqzg28aCvJvq+fRPxYJmdg3FPAHTS+d161vgQWG7kt4HpEI5viOPs/xfTmjUxU364= X-Gm-Gg: ASbGncuoqOQzmnU+Xd30ve1xCZnEmwHdbo/WpIQGpmw3mfBhNnjsU07rxudz+Dssg79 3CgS5V8JODhgFVLEzj4swkZSbYsfFTwRx9dXCZCtx31ltWZR7/RUPV8eH6U5W0gLom4Q1u1ftA5 hnHSUQdFGyaQTB/HEwcLLHt9PFEkFW0AXWA21MZcUYtvongVXFHlih4yz05ZpNtHH/XrOpBp2bq 9Im40azuCPoVC3biKIcQq6PT9/x+btjFRaY/DN4j7ZOTgKMCIal1hfLEWYyc1wolbS0JeCtZipW AFEvFvbADLdjPLn4206ta6KKQLCcV9jh8hesawYWNm8TfIZGqu/GRJdJ1Cjr/B1ADR1Jm4rH/Oa g3CkFxCm9aMxv/mjjMl0Dfr3X0a/UrCNRdgJYP4hoibnLdrhzFWXpXbqF836Zhi/KxD7+/UU9yh lfvaDpo8u5Bvh7eV48 X-Google-Smtp-Source: AGHT+IFKnLXqE8LRIlt2QVhHOKoMN+oTpxrL+57F7QBEnjRT27+V6LIYdrwq+mi99tb4ALfJSxXVkw== X-Received: by 2002:a17:906:f34c:b0:b73:5db5:b6d9 with SMTP id a640c23a62f3a-b76718aab35mr2340211066b.55.1764435513394; Sat, 29 Nov 2025 08:58:33 -0800 (PST) Received: from localhost ([2a02:8071:b783:6940:1d24:d58d:2b65:c291]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-b76f5a4a652sm742627266b.65.2025.11.29.08.58.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Nov 2025 08:58:33 -0800 (PST) From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Eddie James , Andi Shyti Cc: Ninad Palsule , linux-i2c@vger.kernel.org, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: [PATCH 04/12] i2c: fsi: Drop assigning fsi bus Date: Sat, 29 Nov 2025 17:57:40 +0100 Message-ID: X-Mailer: git-send-email 2.47.3 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=750; i=u.kleine-koenig@baylibre.com; h=from:subject:message-id; bh=1VfHxw2ik6pzPD8vLs+mn8BWmuJDAturdWzRRyIrqd0=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBpKyYN8lBrGJpOMDv2bj2UXkW6vOeHEDQSWIxFR +fQY+otSveJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCaSsmDQAKCRCPgPtYfRL+ TjqhCACJ26AKCTEQ2AdYGn8TW4BjKP668+yBDwJOS/VEho+vaICy9AGZPulA2zsc7SyxgONX9UQ WByf2w5LQ1eNkxcYyKRqCPaG2XJZ3KrF93BTAD2LOt7OcwuD+1SDMMvoRY33JU8Lx9T8/2x7U2r dsLH9479cCnr9qM9gw+mt4en/auHBnxLEP1utO6n9UkLIPTFenquh2ydFCF8mRHq3082Lrd7G9B h8hvNdEtNYXz1+e3yguVT9Wl3I9PkXpl3/KPgqt6EXXKe93KiMjm9p685un7xZxJ8zpH/wdK18j n3RjFo1f2KA7qNeCBuBr/tdll8V4RQIa9tdBGt2eDa/BtZPv X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Since commit FIXME ("fsi: Assign driver's bus in fsi_driver_register()") module_fsi_driver() cares about assigning the driver's bus member. Drop the explicit driver specific assignment. Signed-off-by: Uwe Kleine-König Reviewed-by: Andi Shyti --- drivers/i2c/busses/i2c-fsi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-fsi.c b/drivers/i2c/busses/i2c-fsi.c index ae016a9431da..e98dd5dcac0f 100644 --- a/drivers/i2c/busses/i2c-fsi.c +++ b/drivers/i2c/busses/i2c-fsi.c @@ -763,7 +763,6 @@ static struct fsi_driver fsi_i2c_driver = { .id_table = fsi_i2c_ids, .drv = { .name = "i2c-fsi", - .bus = &fsi_bus_type, .probe = fsi_i2c_probe, .remove = fsi_i2c_remove, }, From patchwork Sat Nov 29 16:57:47 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 2170157 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=Fioj0ztG; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2605:f480:58:1:0:1994:3:14; helo=dfw.mirrors.kernel.org; envelope-from=linux-i2c+bounces-14343-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from dfw.mirrors.kernel.org (dfw.mirrors.kernel.org [IPv6:2605:f480:58:1:0:1994:3:14]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4dJbxk6NF9z1yDy for ; Sun, 30 Nov 2025 03:59:54 +1100 (AEDT) Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.mirrors.kernel.org (Postfix) with ESMTPS id 609644E3277 for ; Sat, 29 Nov 2025 16:59:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D9F03126C5; Sat, 29 Nov 2025 16:58:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="Fioj0ztG" X-Original-To: linux-i2c@vger.kernel.org Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87E8F30F95F for ; Sat, 29 Nov 2025 16:58:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764435530; cv=none; b=chYJeGA4iWfYoVb0UazMJiPoDbdnZRcpJX2E7R4xz2l8BDcFIXq2ny4fI1225957OXPHBzogGf9r8b5dLTilFs/qNJY0+knbQ+0024WGL91tQtP9EYmT15p+XRD+mHh4gWChHNNbRWXzdsPHSN8NS5R2SamCyXTjVBX/JOgG2dE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764435530; c=relaxed/simple; bh=lFoITZ+8y9h+znHwjqA5lzaUXuTbRHz9vr6xKWUfQoQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PaZ+7Jf8hgviuKhbCFMM7lStUMF0Pb6/wE2qghAlyYpLCDP3oi/itcLSO9LR+JUuBxRuJ0ArtjgWa+r9Sc6mq7B2uhJwKGnwIs1DPJE4h4PH/rR6T5F5nl+2j5hdYAtAY1QSdNBI2IFvuGJo9u867HWxadVD2DfMx++h7Zgoba4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=Fioj0ztG; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-b7277324204so471670166b.0 for ; Sat, 29 Nov 2025 08:58:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1764435525; x=1765040325; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BNQekoeq5MvJ5okU84UxS4oYSbes7vTEJXlQrgYvFfA=; b=Fioj0ztGbpKi5xVbcQMDgGRjOEVhue1alt/Blss/r+GbLrSvS7xCBDV4X5tiABFWlb LkOF43MFCNFgY5cgFKPtCelS0ndktiNkCmDmdK0XSFU/iQg1nxebipsUzz9QmyUNbLdg afEqWn2RxQUsNyrQQG2U1Z9NsvnSj3tzqI6d9YDKl+MjPsQ6U1zaHpx76MomfOSj8sAq 4H7rIhtoM2kMoFZHiPsJmrtJPWA+YOrNuJUD2C/hRACM3xo23Dv6ON6wRHzaz3YEdOBV r/1Hvy6rlKupBqffZPjmm2Vq/zr7NSlB7iVSZGbNfqlxUhdM2HdpQBWTni/lwU8peTH7 k45g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764435525; x=1765040325; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=BNQekoeq5MvJ5okU84UxS4oYSbes7vTEJXlQrgYvFfA=; b=tTftcfKoDIGRQPM/kFQZ6W6UewaYP8SC5HJ2DUqjGrQae71RKMP9wuE/DsGskt/cjf ueNYtLyP81KH/VLqirm3L0KAxYYCA6geG+jB4a9gae2F5L65BIPiJ2YIQPvvD25C7zJI pqvsdhmL5d1imWOtLpJphCY4eS8N9OITuH6yMh+JOW0uWWOM1EZgfiCOn6eIQci0fezI Z5htjnehULsnp9sLJN6PbG7snB1cfqhl23AclsCgwIV3sIjxNQ3yVzT+xvUZSv1laNBt XJB3LZYzsb7srkPcfgMy0vHyrK733yjeuV9zNc/q8mAhU8+bVk4Inr1rpbvQ/ktYj84I 8E1w== X-Forwarded-Encrypted: i=1; AJvYcCV7alHXWxEUR4Z6P2hwbJ98ELZcf9nw9vjIAPVisi4oT78eraGuidIrTMHUqL9AMj0XS/vrPLM1rZI=@vger.kernel.org X-Gm-Message-State: AOJu0Ywp90vNnzVfcZhZ4dxC6pPSo2WwxaHmU5c6mEQx7WlWsFSrrJIP LPERqX0wCqdg15u1JkbQ5YY+t4bA+LTnaw7NaT74HqGXjFDwhTexj6McL4pa8oFwA/o= X-Gm-Gg: ASbGnct+IjO+NeqeDSCTMhde19KSLnJRfhUa3YTH0d93+NjXYndlbU60c4B4ex+lDO9 Bprk+ygm5m8JgiGdqsB6WLUKliZItZLGe9xxFOwmeFQ1lFqa2Bo0KScJiOMHSd4le76Erq1m5An sAxLR5ArvQiKiYfThlzgHWO6u3nxLUV+X0M02IErigSsdmjPTkXaoFurmCzGyp6AhouHtRwyGj5 YU+y7sp++prz12GKG9xwrFkX2m/0dqDwh6W0ASAtsN+2X+49fPC7hESVgCIcBh13JVwOwk2HeM5 D/H5wS2umJDsZCnxomVRbp7KCfd0PBt1/FUuf4IFnbms4l4P9+Ut4FQHzabHW8WGkN82mv0CPCZ iXUOX7jZhcfdTQTF+9KHt/iauMlqbjvlb/Ew2A4/fpdu0YSb0kN6igWlkNUthyOsGzf52fARZa4 SEJSed6edo0Gm0vjEd X-Google-Smtp-Source: AGHT+IH0MuHRfQrTehiJ52oUZvyc1bRjVVlQ90Y5BVCZU/AGDxq3c6qhZBRECgPEx5G8y1z2CMPY2A== X-Received: by 2002:a17:907:a09:b0:b76:7b8c:a6a2 with SMTP id a640c23a62f3a-b76c5513f0amr2236776366b.30.1764435525382; Sat, 29 Nov 2025 08:58:45 -0800 (PST) Received: from localhost ([2a02:8071:b783:6940:1d24:d58d:2b65:c291]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-b76f519e2a7sm746363266b.19.2025.11.29.08.58.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Nov 2025 08:58:45 -0800 (PST) From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Eddie James , Andi Shyti Cc: Ninad Palsule , linux-i2c@vger.kernel.org, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: [PATCH 11/12] i2c: fsi: Convert to fsi bus probe mechanism Date: Sat, 29 Nov 2025 17:57:47 +0100 Message-ID: <1311bce0d8617c7821cfe0769e97f13dc466d749.1764434226.git.ukleinek@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1926; i=u.kleine-koenig@baylibre.com; h=from:subject:message-id; bh=lFoITZ+8y9h+znHwjqA5lzaUXuTbRHz9vr6xKWUfQoQ=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBpKyYerMbqnhdrESWnep/VE+BwW0xpjbtreFxEN ucImWFZ8nSJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCaSsmHgAKCRCPgPtYfRL+ TonZCACcm2Jdwaa3XVZ2Cp3JYYBZY68UG0Sf3G/dj+JWPDhCBlZ+/+v7prYyU4O3d63j5jPdYaY EHU3cy3rKORxvZQ7O3dHJ8Q2skeRpnrR2wTftedZVfUPNiB5jYlJKSe3sx3ktLQbThCQ1z2Zbvi l3lkI4FFBwsAaYkhjWjMj3y3qF+uJZn1qQdQSZZsqQwJFFf27tnOaNp0FRCvfmBqGmdpuMEMr5a gc85eibDINIZDLq4D+16foZZgOyemHYvJKOMt5G438IZ32J4vutnfcPLxCpIxrHsLlkcUkrFaJy CKa7WQj6VFAJxp9cuDEC1oHlZC7RgE+vdw20Qp5r1jOx9j+O X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 The fsi bus got a dedicated probe function. Make use of that. This fixes a runtime warning about the driver needing to be converted to the bus probe method. Signed-off-by: Uwe Kleine-König Reviewed-by: Andi Shyti --- drivers/i2c/busses/i2c-fsi.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/i2c/busses/i2c-fsi.c b/drivers/i2c/busses/i2c-fsi.c index e98dd5dcac0f..3a7e577e6eac 100644 --- a/drivers/i2c/busses/i2c-fsi.c +++ b/drivers/i2c/busses/i2c-fsi.c @@ -674,8 +674,9 @@ static struct device_node *fsi_i2c_find_port_of_node(struct device_node *fsi, return NULL; } -static int fsi_i2c_probe(struct device *dev) +static int fsi_i2c_probe(struct fsi_device *fsi_dev) { + struct device *dev = &fsi_dev->dev; struct fsi_i2c_ctrl *i2c; struct fsi_i2c_port *port; struct device_node *np; @@ -735,14 +736,14 @@ static int fsi_i2c_probe(struct device *dev) list_add(&port->list, &i2c->ports); } - dev_set_drvdata(dev, i2c); + fsi_set_drvdata(fsi_dev, i2c); return 0; } -static int fsi_i2c_remove(struct device *dev) +static void fsi_i2c_remove(struct fsi_device *fsi_dev) { - struct fsi_i2c_ctrl *i2c = dev_get_drvdata(dev); + struct fsi_i2c_ctrl *i2c = fsi_get_drvdata(fsi_dev); struct fsi_i2c_port *port, *tmp; list_for_each_entry_safe(port, tmp, &i2c->ports, list) { @@ -750,8 +751,6 @@ static int fsi_i2c_remove(struct device *dev) i2c_del_adapter(&port->adapter); kfree(port); } - - return 0; } static const struct fsi_device_id fsi_i2c_ids[] = { @@ -761,10 +760,10 @@ static const struct fsi_device_id fsi_i2c_ids[] = { static struct fsi_driver fsi_i2c_driver = { .id_table = fsi_i2c_ids, + .probe = fsi_i2c_probe, + .remove = fsi_i2c_remove, .drv = { .name = "i2c-fsi", - .probe = fsi_i2c_probe, - .remove = fsi_i2c_remove, }, };