From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 138A9C43613 for ; Thu, 20 Jun 2019 18:27:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DD4EF20665 for ; Thu, 20 Jun 2019 18:27:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561055257; bh=5+pIcsxL3+kMfNjKRKyMxU8gJGrwjrepimwCwm6k9zk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=O3+q5C3jf+oLBZEl6edLDtqLaKQ6G3SvgfFhI2GbpdXEBMAMCgeU+16Wm/N54LlK7 w158vCswSm6XaXwnc+Masx69+Sv9AIp/v8GRNzWi7W3gyv8KGcEsbFmtc1Lwu/jiDd yePH1CQSK9k1m00vNnCjE4Rih9Sgft+JYjErFJ/Y= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727280AbfFTSE5 (ORCPT ); Thu, 20 Jun 2019 14:04:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:57792 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727940AbfFTSEz (ORCPT ); Thu, 20 Jun 2019 14:04:55 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4E1C32173E; Thu, 20 Jun 2019 18:04:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561053894; bh=5+pIcsxL3+kMfNjKRKyMxU8gJGrwjrepimwCwm6k9zk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kBBaULWjiqhIfd5SaAwC2O8uEY8DYgA/UZKrHnB1Tcd5zkN6Cb4mTtjPt8Nbaw7zT XGn/Aq6jrx47mPxVAgBmKY+vTcBOEiEDwwAc/r8kknyxA441bpUtqxHa4XEJQ5rit5 uw0yQveVjLLqePjexIydYv6c24oC29dGF4FtkCrQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Russell King , Wolfram Sang , stable@kernel.org Subject: [PATCH 4.9 064/117] i2c: acorn: fix i2c warning Date: Thu, 20 Jun 2019 19:56:38 +0200 Message-Id: <20190620174356.698304328@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190620174351.964339809@linuxfoundation.org> References: <20190620174351.964339809@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Russell King commit ca21f851cc9643af049226d57fabc3c883ea648e upstream. The Acorn i2c driver (for RiscPC) triggers the "i2c adapter has no name" warning in the I2C core driver, resulting in the RTC being inaccessible. Fix this. Fixes: 2236baa75f70 ("i2c: Sanity checks on adapter registration") Signed-off-by: Russell King Signed-off-by: Wolfram Sang Cc: stable@kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/i2c/busses/i2c-acorn.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/i2c/busses/i2c-acorn.c +++ b/drivers/i2c/busses/i2c-acorn.c @@ -83,6 +83,7 @@ static struct i2c_algo_bit_data ioc_data static struct i2c_adapter ioc_ops = { .nr = 0, + .name = "ioc", .algo_data = &ioc_data, };