Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp649587ybl; Tue, 13 Aug 2019 00:04:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3HgZDQN+ozpUOSCsWzNCyvUiF9/dKBhh5GI9nIhI2ZZiEtHj6enOEFdRWvlymejpP3xDb X-Received: by 2002:a63:e84a:: with SMTP id a10mr34568546pgk.274.1565679865036; Tue, 13 Aug 2019 00:04:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565679865; cv=none; d=google.com; s=arc-20160816; b=FrwsnLTX7HWToVrgiMDVYGIivhuq5BWYRPVY+6bHLw8iqp+Y0e3CrEw3OBofuELTaJ ykv2/f+8mA4TD1lHhaWqJ788enwLS6LF6ZFOxYIi9R+SHWluo36gjbdIzC/3267KkWPM /PxI1bRA5tYj6R5uFBN4l8Ht6mzOqc6K4w+2M/z5U/TNrIUT50MR/2IJvFPNpLK6Y7rp E9+nYte/uZIjo9Oo/+GUpL20qNnWUk7U2uDxlxasRj+nzRiJfTvdXWjZbvmQ81KlkUJm MgM3QgFMbvLurYXqMKjJsbXlK+gU1eZV4VyY2sJWuELDeU/U583TcWrWpLwtMyIENhyr y6hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=JhGTc67iDk0mQkGr3SBplFSte482C9R5LMSQUAAcrNw=; b=jANWQ8+mWpjJsaPfTE6Ms/RA5yu1w4vk6XpSABCILKW6irla2/ADYsY7R/Y8cnrTH6 Xxwj6zujk5uvaTVx71An9TXGhv6t1BVIsvjkpsp7h8dgoNX8GlNr9VSNusk4UoU4BTBQ lmmeAtAPAsnbEq9/Uu5g3EYATiE74PIjzbi9rRbOOD2PpyGTxrjaixUpeam4qbkAFwWE G7yuJT88/ysPK78YDxYuGlj3M8Qu8XZ1SZzvBJ2zTzmg2ZZaeVmGueBcydBtgCjdDM8Q pCbd7pjCBGmnpKgtlq1A5E/B9+GE0HGK3grwkjwDxFzwX8Ix9OuPjHw+/VaD49vTGWEO Xmaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3si396179pju.48.2019.08.13.00.04.07; Tue, 13 Aug 2019 00:04:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726811AbfHMHDX (ORCPT + 99 others); Tue, 13 Aug 2019 03:03:23 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:33955 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725981AbfHMHDW (ORCPT ); Tue, 13 Aug 2019 03:03:22 -0400 Received: by mail-ot1-f65.google.com with SMTP id n5so168785421otk.1; Tue, 13 Aug 2019 00:03:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JhGTc67iDk0mQkGr3SBplFSte482C9R5LMSQUAAcrNw=; b=XWZynr6FjBT9T3Wt0OSNNlyWjQHaqkGqfMM1rPxUEj0hckFOybUBKzxkbqHtpqEFHP lq4fuVzOThzc1BDhNL/imXMwZTKJZPDbV7UVFFlEaOaSaQJFYPaQqIVXW27wWnruRryf GXTO2oL526o2dpzVGGChUUoVBlb7OEumey3ul5yo8f1832XTropyRvovzIeefXvP5O2K yXkwzpVR9yRtB4D0I7WP3WlEVX8WLTyDcEuy0Po1mQ8+iOmQnOmZHYU90ww/8LzzmYTf R5o+XAokPsO/dDVJFEYurZ/5O0EW/MY/ilYSTbxQ6/pNkVr4siLD11Lg2HpfHnYTFGaK 6dTQ== X-Gm-Message-State: APjAAAXaXQSa3ZIfYTd07IIK+qUtlP2uY2aUUTBGgIa8aIqThb/XRGEZ UwaG54J2qb/wJHdV03pnZhKujsMTQ1hX1NQPY94= X-Received: by 2002:a05:6830:210f:: with SMTP id i15mr33683977otc.250.1565679801553; Tue, 13 Aug 2019 00:03:21 -0700 (PDT) MIME-Version: 1.0 References: <20190812235237.21797-1-max@enpas.org> <20190812235237.21797-2-max@enpas.org> In-Reply-To: <20190812235237.21797-2-max@enpas.org> From: Geert Uytterhoeven Date: Tue, 13 Aug 2019 09:03:10 +0200 Message-ID: Subject: Re: [PATCH v2 2/4] i2c/busses/i2c-icy: Add LTC2990 present on 2019 board revision To: Max Staudt Cc: Linux I2C , linux-hwmon@vger.kernel.org, Wolfram Sang , Jean Delvare , Guenter Roeck , "Linux/m68k" , Linux Kernel Mailing List , John Paul Adrian Glaubitz Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Max, On Tue, Aug 13, 2019 at 1:53 AM Max Staudt wrote: > Since the 2019 a1k.org community re-print of these PCBs sports an > LTC2990 hwmon chip as an example use case, let this driver autoprobe > for that as well. If it is present, modprobing ltc2990 is sufficient. > > Signed-off-by: Max Staudt Thanks for your patch! > --- a/drivers/i2c/busses/i2c-icy.c > +++ b/drivers/i2c/busses/i2c-icy.c > @@ -160,6 +180,8 @@ static void icy_remove(struct zorro_dev *z) > { > struct icy_i2c *i2c = dev_get_drvdata(&z->dev); > > + i2c_unregister_device(i2c->client_ltc2990); Is this needed? In my understanding, i2c_del_adapter() below takes care of that. Apart from that, this looks good to me. > + > i2c_del_adapter(&i2c->adapter); > } Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds