Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4984597imm; Tue, 16 Oct 2018 03:24:21 -0700 (PDT) X-Google-Smtp-Source: ACcGV63uXAO7hOF4N4N6x/vFUoH6K/qdSSl891fxqQ16GoGG50j5vm7NCWd+4Nba0Tg7LIp2LYkS X-Received: by 2002:a17:902:368:: with SMTP id 95-v6mr21132029pld.319.1539685461167; Tue, 16 Oct 2018 03:24:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539685461; cv=none; d=google.com; s=arc-20160816; b=1G3uY1ugQaUFylecJYyuEcAYnTXWAsSTuAwuuIUtEhcEmMRkNr+quVACWaUHii6qRD 0P7+WmpgOMZg/DW+PORSmQbE/hGP3ac9kNLxYJDxECSGC3/eGBY4liyykNSt0beFMaAD VYGNM7NmcFPdju2tF5b/LhEmR9g/iSppzqJ3Pjr1eDkFONAbNCCI7MOVouORmagkcHfP rnvRjwxFXf4Y6IolSm/GAMi1MdNs9wRB0e7Kz2BwlKm/BSLpYZ3C5Xk6VcLSFwXi24s4 QexmZsBPcxr0Fv6oJ9xHjylOHAtxRaWUZRMoB43+yM2jhAmG+/TUN5BztqPyJux1uIaN 5Sug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=f0vbKvD/02tmE7FgnOWyl0RiC/Oj614roN93Tsleuk4=; b=qufFmyIUXsuqlxMAHhiogf9D7b1QEfypU+GeJj0y1iHOehuuDuyiAjSXiRM0cmy1Ne lAVtkm5yyiCkblO5aXK9T7Sr8PC10CS+yJ0hLxhSLcCc4pWuAZDTqxjV3NHyW43eZ3RX Q8lfruadC6fdPIPwQD6wR6CqtDCEaiUt925afCQZDhUpk+f3ZszO9tMD0SIJSc8U8DSC UQDok7vQencqxNzMMvYjh+v1k9Lfs5NpIO1lexD8FqmLFRqZYNKMrEs1AmAR5/bxfqYs 8q8bHa0Z4+XgT5HL1b7VsAEjw313VsvLgY0+e05kN4HLq3tl60cX/FBDtBal1nQt8kJ2 BXyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k190-v6si12786360pgd.181.2018.10.16.03.24.05; Tue, 16 Oct 2018 03:24:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727069AbeJPSNU (ORCPT + 99 others); Tue, 16 Oct 2018 14:13:20 -0400 Received: from mail-co1nam03on0067.outbound.protection.outlook.com ([104.47.40.67]:55836 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726778AbeJPSNT (ORCPT ); Tue, 16 Oct 2018 14:13:19 -0400 Received: from SN4PR0201CA0052.namprd02.prod.outlook.com (2603:10b6:803:20::14) by SN6PR02MB4685.namprd02.prod.outlook.com (2603:10b6:805:8f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.24; Tue, 16 Oct 2018 10:20:40 +0000 Received: from BL2NAM02FT028.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::202) by SN4PR0201CA0052.outlook.office365.com (2603:10b6:803:20::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1250.20 via Frontend Transport; Tue, 16 Oct 2018 10:20:40 +0000 Authentication-Results: spf=softfail (sender IP is 149.199.60.83) smtp.mailfrom=gmail.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=gmail.com; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning gmail.com discourages use of 149.199.60.83 as permitted sender) Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT028.mail.protection.outlook.com (10.152.77.165) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.1250.11 via Frontend Transport; Tue, 16 Oct 2018 10:20:40 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1gCMQw-0007Kx-Bl; Tue, 16 Oct 2018 03:18:38 -0700 Received: from [127.0.0.1] (helo=xsj-smtp-dlp2.xlnx.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1gCMQr-0002DT-6c; Tue, 16 Oct 2018 03:18:33 -0700 Received: from xsj-pvapsmtp01 (smtp3.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w9GAIWeB005765; Tue, 16 Oct 2018 03:18:32 -0700 Received: from [172.23.37.106] (helo=xhdshubhraj40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1gCMQp-00028h-PD; Tue, 16 Oct 2018 03:18:32 -0700 From: To: , CC: , , , Shubhrajyoti Datta , Michal Simek Subject: [LINUX PATCHv3 7/9] serial-uartlite: Use allocated structure instead of static ones Date: Tue, 16 Oct 2018 15:48:06 +0530 Message-ID: <1539685088-13465-8-git-send-email-shubhrajyoti.datta@gmail.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1539685088-13465-1-git-send-email-shubhrajyoti.datta@gmail.com> References: <1539685088-13465-1-git-send-email-shubhrajyoti.datta@gmail.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-Result: No--6.678-7.0-31-1 X-imss-scan-details: No--6.678-7.0-31-1;No--6.678-5.0-31-1 X-TM-AS-User-Approved-Sender: No;No X-TM-AS-Result-Xfilter: Match text exemption rules:No X-EOPAttributedMessage: 0 X-Matching-Connectors: 131841588406191692;(f9e945fa-a09a-4caa-7158-08d2eb1d8c44);() X-Forefront-Antispam-Report: CIP:149.199.60.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(346002)(136003)(39860400002)(376002)(2980300002)(189003)(199004)(107886003)(8936002)(83322999)(73392003)(450100002)(336012)(61266001)(4326008)(47776003)(82202002)(55446002)(2876002)(77096007)(305945005)(356004)(6666004)(86152003)(86362001)(26005)(2906002)(50226002)(9786002)(76176011)(51416003)(81166006)(2616005)(426003)(126002)(76482006)(50466002)(316002)(81156014)(486006)(16586007)(87572001)(498600001)(11346002)(476003)(446003)(106466001)(48376002)(36756003)(5660300001)(54906003)(73972006)(110136005)(105596002)(8676002)(63266004)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN6PR02MB4685;H:xsj-pvapsmtpgw01;FPR:;SPF:SoftFail;LANG:en;PTR:unknown-60-83.xilinx.com;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BL2NAM02FT028;1:tlQd/XLsgwg0bMVfP0zD1HnGBmuq7awykTehrVnpWoji8hq6i0ogNpmJiRnVW2MNNaMPDnoAo5W1QW6IbA9K4SRPWiGJukEfKk3agXckvUnhaZw+/muu6DkVEie1Y0/1 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6df16cc2-43a4-4009-064c-08d63351060a X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(5600074)(711020)(2017052603328);SRVR:SN6PR02MB4685; X-Microsoft-Exchange-Diagnostics: 1;SN6PR02MB4685;3:eqM0qHpvsS3qu8VpUvLJ2+jKJg2JIu/mI/MLNQBZZMRD4oplMF+4xNt2TyrutBuUN85tBks4utBpegHgxGS3wKviS9C1BtHEhrLUTDhJoxgTT8xa8oiR1hI5Q2EhyMkok2mQwlgJUiS42vsNpRn/MLgD/GxuyPKChLj7bGgsNiSMXAyxJ8kLUmg9m5AyBl2OVgo+0gaIY1yxi7/EmQog4E5L3rv0woeMHU2JxOpZRXhIt8DCAno9jVCF9u0R3cwfKPLLJAI2a0gTdDE31UpUPIg7WlH7BNReq7yq3UKpDzxmWHaN9tQvH8J6+gF53uaMF159UNQ/aeTClnxEub5F3krA6Mrd8uIT3WLGCENMdf0=;25:D/wvQlR9cAY0iT1nnl9tYI1OUVKluGJoTt4hOeYEux1HTm6uyKBIfQzQ5qXRwUi/9gF/+4j7/OXkBOuqrbmZVPa237NpjIJLC6Kkdi1n4XCyAE4LKTDJiFT6SOmNzLlfFY4XnfCxxQfHTR45G5klmDd6hmpvU+ao3AaiCRJdStrjLgV7YVGOBW1sCFOSjy6msuLA+KjpoY+2K3ydRPrQI4Aq7kVsvfgO+yWy6SelH+BwPRIg6N8DiCQOz7qgqM5IePuUHIy63XIuJTm6KFkkC2flGxcWNw+0Ps4f7A1nbPvr1rfdvvhKiYCCdYCjpIqINJKeHfFPdR0CuZ5XNXCPzg== X-MS-TrafficTypeDiagnostic: SN6PR02MB4685: X-Microsoft-Exchange-Diagnostics: 1;SN6PR02MB4685;31:fgsnt7OTa+4Y7Crd0AAwC0KfBlZ061HCVX1woaD7tVJoqLBfe5p0fSvq1saxR0bXzOtJiftDuaKXraxjou8LwnSpRTq/aYs2pxjWZiGpg7+RzGCXBKUeAEb0lwq9CE3N4jj89luZhW9qDVI42N0S061INxy7wrdKSGUKUSysfnLh42jTz5WxuD/xeWnZg0I1y3Lc3G2OTY5f/JM0qQKQKtgjJFj7xR8bg4wrZlGxeKM=;4:y8yED8hMrnliI4SBCK4l0b+Ddm5oBx5QwH6sY01efSoRlAEvJNglti2HtTWuTwEe0bvGbtUgNH5c/vGsvl7eTRO30L1V/UMrsgLy98VfxjpUcFWAeMJHr9Utr7FgChjCx9rwZ2sLoORvcu2l2IjTkA8QAUBJ9OU7Aeovlm5dQ985bGuzSKK9KNIqS2g26rhljd4njR12Vp1HmET4iky7aBTiJ/rE79a8+49kOfW8iyk3bkxt8qULHHzkzTwH/TEb1fth18vQ/RRKAN01B7bW1M+ZtqY8cmBgOTlWWwZRox/gDjiraUx3el4blBSMQ6N7 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231355)(944501410)(52105095)(6055026)(6096035)(20161123556025)(20161123561025)(20161123563025)(20161123559100)(201703131430075)(201703131448075)(201703131433075)(201703151042153)(20161123565025)(201708071742011)(7699051)(76991067);SRVR:SN6PR02MB4685;BCL:0;PCL:0;RULEID:(400006);SRVR:SN6PR02MB4685; X-Forefront-PRVS: 0827D7ACB9 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN6PR02MB4685;23:ov3erJwmURm12M3AX5R/mRCf/sxht4FCUCgBmOWgz?= =?us-ascii?Q?mIzBh+TUOs3/PzbULnbCBc8vhtXy3uGhTq80XwLh59bSBzuJQLFqNere3uy1?= =?us-ascii?Q?LsrwN6uz4j+r2Xp790r/fgmxDxARl4x+OfutwrI1pFAt63NmZyA3BDCkMXCW?= =?us-ascii?Q?mDP6ELBjMr+FtKBCGwNYGK6WYFfrcLVrk2pkQUYcTa75s+pp0M1bJdoFwQYj?= =?us-ascii?Q?DrKomX9WTvK1qWb5xpIzvWis5z/l0B2Q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iIdvQ5QYjcn8AT8gOmZRO2QgyzEhxTRuQ==;5:quiONAlcX8BkFbeWOMafUiwQycPOMHXVMYZ6ZNQd0uuIUGaJIdFAnPT6rlIx1yV2BcBZ6bUr7qGjScSM9iwUPByqiE7knXwtbWWp9+ketNZCU3ejujFpt21gFNhNRoz57EExRRP0k3gSpHOCWL5QyL76uNmkm3emGot6Uak/nxU=;7:YqXSpAaxxU0igDrwgYxguZO7cmOWDPLew+vBLB4KxLEeSlAqeLICKXCcGvq8hUpNnwEKhhvy+7mLhtXgQZzpr2ueJv4pczHrKwhHZJcUxix640sVtK1rW7np3bVD/jv1Ap+efN5zMuS/SFbs7aMtUyISAu21Jln0HcgV3WUJrjP8d7JbQKkpiKp2f+DHef4O/yV7gGdNw9pQ3tiVH2AD7dnfJMFkEAXPXjqTuvxUjdo0rVYT1G1AgLpqva7cduGv SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2018 10:20:40.4316 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6df16cc2-43a4-4009-064c-08d63351060a X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR02MB4685 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shubhrajyoti Datta Remove the use of the static uartlite structure. Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek --- drivers/tty/serial/uartlite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c index 9c99a1d9..20fe11f 100644 --- a/drivers/tty/serial/uartlite.c +++ b/drivers/tty/serial/uartlite.c @@ -670,7 +670,7 @@ static int ulite_assign(struct device *dev, int id, u32 base, int irq, #endif /* Register the port */ - rc = uart_add_one_port(&ulite_uart_driver, port); + rc = uart_add_one_port(pdata->ulite_uart_driver, port); if (rc) { dev_err(dev, "uart_add_one_port() failed; err=%i\n", rc); port->mapbase = 0; @@ -681,7 +681,7 @@ static int ulite_assign(struct device *dev, int id, u32 base, int irq, #ifdef CONFIG_SERIAL_UARTLITE_CONSOLE /* This is not port which is used for console that's why clean it up */ if (console_port == port && - !(ulite_uart_driver->cons->flags & CON_ENABLED)) + !(pdata->ulite_uart_driver->cons->flags & CON_ENABLED)) console_port = NULL; #endif -- 2.1.1