From patchwork Fri Feb 12 09:15:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 8288981 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 910A19F6E4 for ; Fri, 12 Feb 2016 09:16:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B2E28203B0 for ; Fri, 12 Feb 2016 09:16:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CC4952034C for ; Fri, 12 Feb 2016 09:16:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751320AbcBLJP7 (ORCPT ); Fri, 12 Feb 2016 04:15:59 -0500 Received: from mail-lb0-f179.google.com ([209.85.217.179]:33568 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751083AbcBLJP4 (ORCPT ); Fri, 12 Feb 2016 04:15:56 -0500 Received: by mail-lb0-f179.google.com with SMTP id x4so42207105lbm.0 for ; Fri, 12 Feb 2016 01:15:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=dZEncsGBsKgfKTAwQjL05Ds/pP54sStWYsJ8i5HSoVk=; b=i12Z9yufflZu/6uqb6CRl0BFImtIIuxVcsBxkieKxzseCyn+efFsVY9dYZmBBXwxR1 quktJZHACRYpGdgt9aBUZjU5KWhj7ON10XiJCZP40FwkTWTjAYJ2XmQyaP8JIuz5PTk1 3P4uXoT3mPObIw1NlPVk2qsllChdCXikdrTMHJ8hV7VipAKRSUAlLobyQwfYz12SbK7/ ruzU3cfg7YbtJjF+29o1t+fu68ruEXq/JnrD4wePCWG22JrRk5Ff5nPTewEgjXVVPYi+ XgTZr3r7zA042VN0877cySLCk2rXWKTUB2pxBDtrSzg+dVfGK6ptCM6E2PjNN+SHP9jJ SY4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-type:content-transfer-encoding; bh=dZEncsGBsKgfKTAwQjL05Ds/pP54sStWYsJ8i5HSoVk=; b=axJPxU9XHp3QVOi8OlLdCwI9Jzqh2BQwyDIAmBwCSY+WZbFkFy0SVIByjktbnFHEgy /U/IXK1XcSlQI1foE0ph3zYHUpe7IW5GIeptrU8+4L9nttC3/bHeClNtElbtT8jAdTiW 5DXzutkB/qqI77px4a5Q9DFUbqLOMP3StgvySjHEfy6FccEfpFOcI7qbAkvKM0ZlnaEX 1YSqAyKBnVtEhha8AUn2csaPAj5wO/ERwSREv5Sz9nNi4X7J3xRTg9o5e5x+Xim+nbw6 ZkMgM94y/12Gf+bZ4oYNqtXhcyucVRDUp+PjIqM2fgbtHYXZ9N65ULWcsIsLxAzCMHcT 1v7g== X-Gm-Message-State: AG10YORVHxb2ybq3Dkafcr8lNOihB0g2/0ACVm7sGRWtp8MEq46h68uhLT/fAyFP1XcYCA== X-Received: by 10.112.130.193 with SMTP id og1mr186391lbb.97.1455268554941; Fri, 12 Feb 2016 01:15:54 -0800 (PST) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id o9sm1782653lfe.15.2016.02.12.01.15.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Feb 2016 01:15:53 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Kalle Valo , linux-wireless@vger.kernel.org Cc: Hauke Mehrtens , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH 1/3] bcma: drop unneeded fields from bcma_pflash struct Date: Fri, 12 Feb 2016 10:15:43 +0100 Message-Id: <1455268545-11667-1-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.8.4.5 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Most of info stored in this struct wasn't really used anywhere as we put all that data in platform data & resource as well. Signed-off-by: Rafa? Mi?ecki --- drivers/bcma/driver_mips.c | 11 ++++------- include/linux/bcma/bcma_driver_chipcommon.h | 3 --- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/bcma/driver_mips.c b/drivers/bcma/driver_mips.c index a40a203..20c134c 100644 --- a/drivers/bcma/driver_mips.c +++ b/drivers/bcma/driver_mips.c @@ -288,18 +288,15 @@ static void bcma_core_mips_flash_detect(struct bcma_drv_mips *mcore) case BCMA_CC_FLASHT_PARA: bcma_debug(bus, "Found parallel flash\n"); pflash->present = true; - pflash->window = BCMA_SOC_FLASH2; - pflash->window_size = BCMA_SOC_FLASH2_SZ; if ((bcma_read32(cc->core, BCMA_CC_FLASH_CFG) & BCMA_CC_FLASH_CFG_DS) == 0) - pflash->buswidth = 1; + bcma_pflash_data.width = 1; else - pflash->buswidth = 2; + bcma_pflash_data.width = 2; - bcma_pflash_data.width = pflash->buswidth; - bcma_pflash_resource.start = pflash->window; - bcma_pflash_resource.end = pflash->window + pflash->window_size; + bcma_pflash_resource.start = BCMA_SOC_FLASH2; + bcma_pflash_resource.end = BCMA_SOC_FLASH2 + BCMA_SOC_FLASH2_SZ; break; default: diff --git a/include/linux/bcma/bcma_driver_chipcommon.h b/include/linux/bcma/bcma_driver_chipcommon.h index 700d0c6..16eaaad 100644 --- a/include/linux/bcma/bcma_driver_chipcommon.h +++ b/include/linux/bcma/bcma_driver_chipcommon.h @@ -579,9 +579,6 @@ struct bcma_chipcommon_pmu { #ifdef CONFIG_BCMA_DRIVER_MIPS struct bcma_pflash { bool present; - u8 buswidth; - u32 window; - u32 window_size; }; #ifdef CONFIG_BCMA_SFLASH