Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp403143pxv; Thu, 24 Jun 2021 10:23:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmwvMc9tu2z7GkaEslYSSNV8y4DcCUzYOYJJgH1ayNWVP/WSydnYxsDliurT/rTPRvvwpX X-Received: by 2002:a05:6e02:1a84:: with SMTP id k4mr4309612ilv.206.1624555382588; Thu, 24 Jun 2021 10:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624555382; cv=none; d=google.com; s=arc-20160816; b=UBH2ME4ZKcwGiLCMTpU7F8CtMilR+ecJmMvCRphC5mDPSfXyOkZJYOeTrjs6DoBCC+ Nx4I32tJ7oH6YiB3F5mbSd7o4onB9UX7tl4tv0V/vFCnh4sko5rfwQoNh9JtO51WnwFa rpjirr8jXkrNaK1OH3esJRwT2r+R22az/klD1+/7hLVG+uXrHw9wksCqrKjdyhSZ1ZDG sN+QjiGuwgDcBW+cTPdZGOAa/8HK0rf6c/51FJq8Vsw5jdNFm59ZprDkG39CY5Hjas6/ jdGZ+Q9yE+WMruxF8kCwcu+UfrvFWmlaxj5+LUhFQJ1Kn3mQcJ6SLvV/v7/M4r1jgTVF RMDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature:dkim-signature:dkim-signature:dkim-signature; bh=GZewz+dJ4nSNLfOaC9fHbVY+mBlxFQ3Psk7Ka1K8wG4=; b=dpBd/VloMUWhSkgcgY5GG9meNYT+/BI0E4gMjnTye0OuBZS/t/TGRsfQLz1U+fPZ4O mL4xD1mNxeuxssfE4edZr6IezBJCw76HDzWsEj9BlNgUurkIK1CTNinKCpqjJRtRVFh6 C7idTRZ8T0eV/PaHruBAkAlrU3GQ12Op7Z1fFJF/8W8ZNk9oz6W5+9U15meDxgRJyn1T NmDbn+6TfT8TToRcICDyh7FCZOHbOiyn1UUjofe+5QwJbqM5fSs/cC3xCb4dLxoh9Fhw d11bq74Zc5waF/GGd/MxNYcaXNVNPZfYsy/+mGLsYG4haJcNSR1+90v/N+DfkmSZsn4f nL3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=2MEKv7SL; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=OnzFmu2C; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=2MEKv7SL; dkim=neutral (no key) header.i=@suse.de header.b=OnzFmu2C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si4368940jak.4.2021.06.24.10.22.50; Thu, 24 Jun 2021 10:23:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=2MEKv7SL; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=OnzFmu2C; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=2MEKv7SL; dkim=neutral (no key) header.i=@suse.de header.b=OnzFmu2C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232085AbhFXRYc (ORCPT + 99 others); Thu, 24 Jun 2021 13:24:32 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:35932 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbhFXRYb (ORCPT ); Thu, 24 Jun 2021 13:24:31 -0400 Received: from imap.suse.de (imap-alt.suse-dmz.suse.de [192.168.254.47]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 442D41FDA9; Thu, 24 Jun 2021 17:22:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1624555330; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GZewz+dJ4nSNLfOaC9fHbVY+mBlxFQ3Psk7Ka1K8wG4=; b=2MEKv7SLvynfnEaykHKfV4hVixl0g/k2OugV3VlbM+VXVcLs6ssRox5skP4DchWiKuX3Tg nzJ+Cjj4o4zEvzexLMdOvbi0Q7xUzyVEYTDmpD984BxBYSmG12NxvvsNqvSxSlalNQJ1lb uU2NIZV0v+2/+mSUN0bfnwsn2ANCzGM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1624555330; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GZewz+dJ4nSNLfOaC9fHbVY+mBlxFQ3Psk7Ka1K8wG4=; b=OnzFmu2CaRVPgMxeGpg/rveDZTAOwgTHouOLnr47F9+HGJ28SDts6ENDAIbgSJSWVyZa23 UkfHp5BfRFfR1qBg== Received: from imap3-int (imap-alt.suse-dmz.suse.de [192.168.254.47]) by imap.suse.de (Postfix) with ESMTP id 0244511A97; Thu, 24 Jun 2021 17:22:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1624555330; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GZewz+dJ4nSNLfOaC9fHbVY+mBlxFQ3Psk7Ka1K8wG4=; b=2MEKv7SLvynfnEaykHKfV4hVixl0g/k2OugV3VlbM+VXVcLs6ssRox5skP4DchWiKuX3Tg nzJ+Cjj4o4zEvzexLMdOvbi0Q7xUzyVEYTDmpD984BxBYSmG12NxvvsNqvSxSlalNQJ1lb uU2NIZV0v+2/+mSUN0bfnwsn2ANCzGM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1624555330; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GZewz+dJ4nSNLfOaC9fHbVY+mBlxFQ3Psk7Ka1K8wG4=; b=OnzFmu2CaRVPgMxeGpg/rveDZTAOwgTHouOLnr47F9+HGJ28SDts6ENDAIbgSJSWVyZa23 UkfHp5BfRFfR1qBg== Received: from director2.suse.de ([192.168.254.72]) by imap3-int with ESMTPSA id bazEOUG/1GC5WwAALh3uQQ (envelope-from ); Thu, 24 Jun 2021 17:22:09 +0000 Date: Thu, 24 Jun 2021 19:22:09 +0200 From: Jean Delvare To: Andy Shevchenko Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/1] i2c: parport: Switch to use module_parport_driver() Message-ID: <20210624192209.648eebe0@endymion> In-Reply-To: <20210616140441.39479-1-andriy.shevchenko@linux.intel.com> References: <20210616140441.39479-1-andriy.shevchenko@linux.intel.com> Organization: SUSE Linux X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, On Wed, 16 Jun 2021 17:04:41 +0300, Andy Shevchenko wrote: > Switch to use module_parport_driver() to reduce boilerplate code. > > Signed-off-by: Andy Shevchenko > --- > drivers/i2c/busses/i2c-parport.c | 36 ++++++++++---------------------- > 1 file changed, 11 insertions(+), 25 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-parport.c b/drivers/i2c/busses/i2c-parport.c > index a535889acca6..ccbbc9306e88 100644 > --- a/drivers/i2c/busses/i2c-parport.c > +++ b/drivers/i2c/busses/i2c-parport.c > @@ -267,6 +267,16 @@ static void i2c_parport_attach(struct parport *port) ^^^^ > int i; > struct pardev_cb i2c_parport_cb; > > + if (type < 0) { > + pr_warn("adapter type unspecified\n"); > + return -ENODEV; ^^^^^^^ > + } Does not build. -- Jean Delvare SUSE L3 Support