Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756892AbcCUP6Z (ORCPT ); Mon, 21 Mar 2016 11:58:25 -0400 Received: from mail-by2on0070.outbound.protection.outlook.com ([207.46.100.70]:4128 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756796AbcCUP6J (ORCPT ); Mon, 21 Mar 2016 11:58:09 -0400 Authentication-Results: spf=fail (sender IP is 66.35.236.236) smtp.mailfrom=opensource.altera.com; vger.kernel.org; dkim=pass (signature was verified) header.d=altera.onmicrosoft.com;vger.kernel.org; dmarc=none action=none header.from=opensource.altera.com; Authentication-Results: alien8.de; dkim=none (message not signed) header.d=none;alien8.de; dmarc=none action=none header.from=opensource.altera.com; From: To: , , , , , , , , , , CC: , , , , , , Subject: [PATCHv3 3/9] EDAC, altera: Remove platform device from check_deps() Date: Mon, 21 Mar 2016 11:01:40 -0500 Message-ID: <1458576106-24505-4-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1458576106-24505-1-git-send-email-tthayer@opensource.altera.com> References: <1458576106-24505-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: CY1PR0601CA0028.namprd06.prod.outlook.com (25.160.162.38) To BY1PR03MB1481.namprd03.prod.outlook.com (25.162.210.14) X-MS-Office365-Filtering-Correlation-Id: baf0c3df-d10a-4697-b37b-08d351a196c8 X-Microsoft-Exchange-Diagnostics-untrusted: 1;BY1PR03MB1481;2:GnV0D6HicX50OK+Ez9rcgh28FtH3TQEHRkvW9NKAIuLmowkYDSwFoWs8d+uhqm9rooUeir+10yPxJfMnQL5BGF7RX5/IEAjxth4oi6JD+/As6iC9AjMEcuQQVCSeo7N9gnGK6qmZFTea11HKE8cq6QD9H4GyVeqWBWX9zO4jXTG24KKaC0Z6k5in9kXv5A4z;3:DyEH6Qxr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fzJ8xzP5fWP425Gjvcb7Yi4vWbXhts4mM8xYVKDZ8w0I5jQMUHhIFITNT/Nl6ONrZRGor5VRltVxvJVt4NqM64PbUOwdJcaYF3mVj357HP1QEg28hCeIME843m29jwHFq5gkrhxo3RSEHuD3pcQ7xjwzY9yNmbM+gdl3mCcEq2t8KeJoahGLCYqTcLjkoqwVsqbGKHFROefC1mFIOqW8eC6jxQEQH70G62noKyR5eCIZBJ9ZJJICKRtDS X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046);SRVR:BY1PR03MB1481;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1481;BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(13018025)(13023025)(13017025)(13015025)(13024025)(8121501046)(3002001)(10201501046);SRVR:BLUPR03MB1489;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1489; X-Forefront-PRVS: 0888B1D284 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(4630300001)(6049001)(6009001)(47776003)(575784001)(66066001)(86362001)(50466002)(2201001)(86152002)(81166005)(92566002)(50986999)(76176999)(42186005)(5001770100001)(19580395003)(19580405001)(189998001)(5004730100002)(107886002)(229853001)(5003940100001)(50226001)(1096002)(3846002)(586003)(2950100001)(4326007)(2906002)(6116002)(4001430100002)(77096005)(5008740100001)(2876002)(33646002)(48376002)(921003)(4720700001)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR03MB1481;H:tthayer-HP-Z620-Ubuntu.137.57.187.33;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1;BY1PR03MB1481;23:QitLFUH0hmMSss4y08uhvsB3Q4rUw2opbOsmJ+d8B?= =?us-ascii?Q?gP7QeeaHlgFPT0ck5RXS4f/HReHrU6v2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9ODXVpLUEDchcOkNlNzOx2JXDY8Jls/Zvv9q3olNykZs1y5X0G+vErRoq?= =?us-ascii?Q?5OxZMbm7+DyqSMGpNMHeECM496w5Mwa2gpOyFbuI3R7OIsT8w7k/V/rCpZHh?= =?us-ascii?Q?+vCvOQLkDdvBLmLohG9qAGle2xo?= X-Microsoft-Exchange-Diagnostics-untrusted: 1;BY1PR03MB1481;5:drJcdvAu0GohA9bENzh91Eq0QOq0PwRxr1de5vtacjY7cXf99QVsvJ3GV/bEIzTNBimevMUHdjdQTwNyHoFOt6q5K8M93bJfVthK5Eaf9KvwSsP95PZCxXIo/qdDi3+NhHo/nrRLah2XPQzoDm0+sg==;24:I66VEmkK33IeOh8e11842t1NQOTyo1QqiAKuIiD/SzC4Vvqhn1xYWEBKh2BO0T4R3S2cq5Oyk28zV/h++J7UQWsTiunrkye1drFfe6k1dlg=;20:+M3qgwWTz0OqRYSwec7Ljwy3GdAE8msN09CMpBwidrwi0Bi2TR6/s/Cjn10XEYE06wg2Np1M2nX1dSM/DpkiR3Dp0CIvqijkwzpqCGgBIfjo8USR787aEUTChfQyEmpeb7Zl232RUDebLDa/85l7pILRJUWLROFZhKsRUW3NFA8= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1481 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1AFFO11FD040.protection.gbl X-Forefront-Antispam-Report: CIP:66.35.236.236;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(229853001)(106466001)(105606002)(956001)(11100500001)(2906002)(2201001)(86152002)(81166005)(107886002)(2876002)(48376002)(33646002)(21840400001)(76176999)(50986999)(5003940100001)(50466002)(5008740100001)(5004730100002)(3720700001)(92566002)(6806005)(4326007)(85426001)(16796002)(6116002)(19580405001)(47776003)(77096005)(189998001)(4001430100002)(50226001)(586003)(2950100001)(19580395003)(1220700001)(66066001)(87936001)(5001770100001)(1096002)(575784001)(3846002)(86362001)(7099028)(921003)(4720700001)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR03MB1489;H:sj-itexedge04.altera.priv.altera.com;FPR:;SPF:Fail;MLV:sfv;MX:1;A:0;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD040;1:BmcJpTln6JiiR/LfJBiakcHTdHUCUU3bETYB6odT7oLhsZDIeNjg4ioSndfoy6n5WeiHtRrSGEW9YJW/1W9XCB2y0i5t6PBFmWQo82V4Mfrcx7qQO0RNzNstRtb4dk3r9o+jSaa2vx+HXGJlerW3dktpu5aZi5LTCp+HJRNg7MZySQWLv7we4RQR9UB0ClAkB7AvlyDFk2nejO8fPmmKbrO5IhWNj248zhTHMk+uhGfXW6eCgooe9ZbQPrXg4HPmE9DKxTA/nXHotoVZCMMFbpA+6a6YxOD8bykvdiYIZ+S5aYEgERgmncDQC8rkFJKxlqsrr3sST46NEJOwBZV2Mip0PTZQdaGM+8f/XoTQyiN9XA42D2G0k9EvPvW9Yw+UDUCa0fPdUBdMpYn9+GT3VtLgMyxcZYuqOPuuqoOl71C5JWODWA5GB/16+1kPpOSiuFaXxcPgS0s4TrxEd8BEuOCT5MLHrqvKIacaWu5bcQ06j6FHO3/uh1Byz9tHG8mZ X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB1489;2:1G5LIZCYvVUv3zfuQLW0oYPfTE19QM5q9DFRQr+quyaFhnX9NdZs0CHd4BvEZahbdcdWJ+OlSjWeRDfit5l9ui/DT7Li6mA6TKnmV5ldPHxJqqiuXjc8/Son/xooUl8UECQ/zmeZM2QM62EkyRYeJad1jy6mYm4sugI4fyD8CrqkW1Bh2M02diNMcap1j4w9;3:u5h12r5/A6FCbWUJUw29NGnM0BuejvBrWb37npAfQNbXY/5S/P+jKwEX29RrrVJaz4xplix5bduOj3Yo6c/UPH10GqcmNoydDZ1yuxUuRF7x5Lc3Sd8kbu8JBOcDNGymQVphqoCXRcnX5dQOZWXkQ+Am/NGZ/hfST3Ixgu0r+hiflyVfKf9wiVK0RRHHsp6v6S1bPv6hvAhoL1PeRpqs0aDUiOk9fWrdfnoF0e/7TktxMsMYav8syRG4TWZm/6/K X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(3001016);SRVR:BLUPR03MB1489; X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB1489;25:oUDcN2ZdLWUSTyF9HH6U0eUrRWBbgmuYT7WOdPjuM0T/YsNECaXqpMGbk0vCY7GAY2v8GjUR9/yKtEmn4xny9ZwX6hIsYFQDSQBM8qWNqYv3SPPHgGskefud05URkTzbt+WaWUyBmzs6+MM45A5TMzSTaIcnbwSkAMJ2DTwTQcxhaIPk1laMyfCRwisBPllYlf/uoEoHd+PeJB30xbBL8MQdgsMISHwSfU8h/wHs/c6ZNcpTlmKTzmfWffCC9tklmFX9u95bMUQ2UBwwrGG1rQkUCmsKHOfx4R/S767TfwVs0NvbBjWU/M+ym3eI365gznjeFAf9TA8GaatUrWcPFMgAIioq1T+pTlGVjeqWGhMDkTrexurpIXEjBF+/w3ChFbxxAlihECZoxCY5Nul1f71oE0W6ea02hlTL/P2vO+gsJ+Y+ll889ix5168GDYCzKksTD4DeMiLy9GFnhtayk3Dd8T1oBZMXY0r09JySKU9bufF6DCTVLT7zuMHseaGao6cWSpX5AZhfvG7A0W8J3w==;20:czcAy5g0c/9AXXYMxyhvEp72/u28bEiFmt+FxIOb+zKANKSdyl3WzHOnu5/pkWI7hOG6Qi0w9AlPj3Rv64NTg6bwZzQGbPdWb9qn3Mu3wUrYmGaFkLVeAf1Y75Lty9NBJGPsNQQ4uBJUq3PazT9t91VnejxvG5tzdgoUN+eejTQ= X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB1489;4:vrLY6d5ex4Gg9VsIDBQ1queBDuKhYUfyLFAYpvVPw934siBYpTeokIDAwJL0wDs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= =?us-ascii?Q?k0M6paEax+pE4uA2lefTkpOH5+qr2O17vbF1p42A1BbqA4e?= X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB1489;5:3oui75gIxqBYg64p/XweT4+Yp4SyQapeAdmWCuFWUBc3HbJHIeg0luILQn/QS/WZoWOvZlDgXWBE+kYZx0tokGllnzX2AvdoU0rxg0W8FyENyHw1RCj1oTaRaNLywiIPCrkE/FVmDwncpBFa4HXMUg==;24:dyg/b6h8z9jWxdYDRHCY+LWorv/PqMLF5yqfiHsWBIvzpcHWidMJWnLx1BAMVVKbROorz3bWtLHtW6VDpxN2/FKy1eXzx1+k9Qidhneq12c=;20:rxirJ/BaiSq3YGimb1sd6+nsxP6Y8kDAmpRLKLO/Sxi2r25XlinXvM24CyxmLaRR6tlUT8J67mKPQeKg4e7FC2x8bAEofLr3vtLwWTO5aaTEJktYgM0EUPsmpx2JvL58112hGe6nITWdTMsQ591ZS9gKWBEY6CcZrachR448pik= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2016 15:58:04.5543 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a;Ip=[66.35.236.236];Helo=[sj-itexedge04.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1489 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2381 Lines: 70 From: Thor Thayer In preparation for the Arria10 peripheral ECCs, the platform device parameter is removed from the check_deps() functions because it is not needed and makes the Arria10 check_deps() cleaner. Signed-off-by: Thor Thayer --- v3: This change added. --- drivers/edac/altera_edac.c | 10 +++++----- drivers/edac/altera_edac.h | 4 +++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c index eee7a39..e20a045 100644 --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -746,7 +746,7 @@ static int altr_edac_device_probe(struct platform_device *pdev) /* Check specific dependencies for the module */ if (drvdata->data->setup) { - res = drvdata->data->setup(pdev, drvdata->base); + res = drvdata->data->setup(drvdata); if (res) goto fail1; } @@ -856,9 +856,9 @@ static void ocram_free_mem(void *p, size_t size, void *other) * Can't turn on ECC here because accessing un-initialized * memory will cause CE/UE errors possibly causing an ABORT. */ -static int altr_ocram_check_deps(struct platform_device *pdev, - void __iomem *base) +static int altr_ocram_check_deps(struct altr_edac_device_dev *device) { + void __iomem *base = device->base; if (readl(base) & ALTR_OCR_ECC_EN) return 0; @@ -923,9 +923,9 @@ static void l2_free_mem(void *p, size_t size, void *other) * Bail if ECC is not enabled. * Note that L2 Cache Enable is forced at build time. */ -static int altr_l2_check_deps(struct platform_device *pdev, - void __iomem *base) +static int altr_l2_check_deps(struct altr_edac_device_dev *device) { + void __iomem *base = device->base; if (readl(base) & ALTR_L2_ECC_EN) return 0; diff --git a/drivers/edac/altera_edac.h b/drivers/edac/altera_edac.h index 993bb0a..32c798a 100644 --- a/drivers/edac/altera_edac.h +++ b/drivers/edac/altera_edac.h @@ -217,8 +217,10 @@ struct altr_sdram_mc_data { #define ALTR_L2_ECC_INJS BIT(1) #define ALTR_L2_ECC_INJD BIT(2) +struct altr_edac_device_dev; + struct edac_device_prv_data { - int (*setup)(struct platform_device *pdev, void __iomem *base); + int (*setup)(struct altr_edac_device_dev *device); int ce_clear_mask; int ue_clear_mask; char dbgfs_name[20]; -- 1.7.9.5