Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3x47SK0D0mzDr98 for ; Sat, 8 Jul 2017 07:45:04 +1000 (AEST) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v67Lhrpt029485 for ; Fri, 7 Jul 2017 17:45:02 -0400 Received: from e16.ny.us.ibm.com (e16.ny.us.ibm.com [129.33.205.206]) by mx0a-001b2d01.pphosted.com with ESMTP id 2bjhr6h8te-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 07 Jul 2017 17:45:02 -0400 Received: from localhost by e16.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 7 Jul 2017 17:45:01 -0400 Received: from b01cxnp22033.gho.pok.ibm.com (9.57.198.23) by e16.ny.us.ibm.com (146.89.104.203) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 7 Jul 2017 17:44:59 -0400 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v67Lixc553084194; Fri, 7 Jul 2017 21:44:59 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E9EFCAC046; Fri, 7 Jul 2017 17:45:04 -0400 (EDT) Received: from oc3016140333.ibm.com (unknown [9.85.179.192]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP id 929E0AC03A; Fri, 7 Jul 2017 17:45:04 -0400 (EDT) From: Eddie James To: openbmc@lists.ozlabs.org Cc: joel@jms.id.au, "Edward A. James" Subject: [PATCH linux dev-4.10 v2 3/3] i2c: fsi: Remove idx counter Date: Fri, 7 Jul 2017 16:44:47 -0500 X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1499463887-27601-1-git-send-email-eajames@linux.vnet.ibm.com> References: <1499463887-27601-1-git-send-email-eajames@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 17070721-0024-0000-0000-000002A9FE86 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007338; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000214; SDB=6.00884325; UDB=6.00441252; IPR=6.00664512; BA=6.00005455; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016133; XFM=3.00000015; UTC=2017-07-07 21:45:00 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17070721-0025-0000-0000-000044ABF2FC Message-Id: <1499463887-27601-4-git-send-email-eajames@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-07-07_11:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1707070362 X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2017 21:45:05 -0000 From: "Edward A. James" It is no longer used. Signed-off-by: Joel Stanley Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/i2c/busses/i2c-fsi.c b/drivers/i2c/busses/i2c-fsi.c index 7e03f3a..adcd8cd 100644 --- a/drivers/i2c/busses/i2c-fsi.c +++ b/drivers/i2c/busses/i2c-fsi.c @@ -132,7 +132,6 @@ struct fsi_i2c_master { struct fsi_device *fsi; - int idx; u8 fifo_size; struct list_head ports; wait_queue_head_t wait; @@ -147,8 +146,6 @@ struct fsi_i2c_port { u16 xfrd; }; -static DEFINE_IDA(fsi_i2c_ida); - static int fsi_i2c_read_reg(struct fsi_device *fsi, unsigned int reg, u32 *data) { @@ -563,7 +560,6 @@ static int fsi_i2c_probe(struct device *dev) init_waitqueue_head(&i2c->wait); sema_init(&i2c->lock, 1); i2c->fsi = to_fsi_dev(dev); - i2c->idx = ida_simple_get(&fsi_i2c_ida, 1, INT_MAX, GFP_KERNEL); INIT_LIST_HEAD(&i2c->ports); if (dev->of_node) { @@ -617,8 +613,6 @@ static int fsi_i2c_remove(struct device *dev) i2c_del_adapter(&port->adapter); } - ida_simple_remove(&fsi_i2c_ida, i2c->idx); - return 0; } -- 1.8.3.1