From patchwork Sun Feb 11 15:45:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ricardo B. Marliere" X-Patchwork-Id: 13552508 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0ED96C4829B for ; Sun, 11 Feb 2024 15:44:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=G1FZeYuBVn1OEBdl5l0RVyVA55yoFy9R/chBNgIK+zA=; b=0RHDIrYgn3NMnf zI9veAN9KKjCfOrndVcixoWNtwrXje38tV++7exmU72XdDH0PlotRDdtZqRrqQjDAxADYeiRwPTaU PJ/UcKbcep4B94BmPplZnPzCtOf1QPmDIpLcDNka0f9kGx0TmiSQoQfw4mNy76gRpqLfg40qqNUne 5XmReEk6BRmBcpdllPaEFO91Fz0eArv7bR0ca9CXYiHOiGWoO0kHhY+c2lmcT20rEh9zmX21Rt3E/ TGgSgbmU/1XYUT+3PenRNy+9hF6FEg0OhLDpLWeAbZZh7fJ6O4pkNBEqfOjAJrHtmSy7rO6YSn0po I4G3Z3TLWfrhgyaCn9KQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZC0X-00000002wWz-0TGz; Sun, 11 Feb 2024 15:44:41 +0000 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZC0S-00000002wVH-05a1 for linux-arm-kernel@lists.infradead.org; Sun, 11 Feb 2024 15:44:37 +0000 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-6e06d2180b0so1992595b3a.0 for ; Sun, 11 Feb 2024 07:44:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707666275; x=1708271075; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:dkim-signature:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/+E1K6pvxB8MK9OPanevb+L76gD9CBZNqNqAXOGIap8=; b=iY2VzMwp1F9myu6POknhzs3uEO289MEh6BjrOBPIbVSaP0aER8TSz2Xusc8k/amGBG +z3H4xNFNYV2Mqd/LexWNQQ8DXfxmDB6hU/jGhQAnZklWDZ3IreQCQ9MOcQ+tHLNx8W7 +25UpnIl+ZdRPwYrNAYqsxH0fVVk/FqwleEG2RjdNEXmj90EnWPvriPCpF6gzVFIa60v DainpzW4ZmM1OoN127eEOd4S5Ev+MxjPuhSPWTL0UrfdHDcLA5kL0KMX19DaXTFsK2Nl s0vtNbCEDCl9/b0F+vYxqOdHGDaNwztoVWIpgu8Nr8F22GP8AtoMLTJN4GEDZAd7sLbL PL/Q== X-Gm-Message-State: AOJu0YyBquZoAkH9XVaZU36lhwQMYKaXe1v3zDWowNugLNonKcyX/Yb2 hDKvtyWHgP+BlAvwYfLqNZzpSc3rKMvboQCLcvrr5MPdsYXWE+C4 X-Google-Smtp-Source: AGHT+IGLetR+W3FaSqd3kOAF4ILwXsCwRToCqcwZEu6Aar8deWxH3+qJzpXXK3ztiWTSRl4GbGzatQ== X-Received: by 2002:a05:6a00:be7:b0:6e0:8618:d06f with SMTP id x39-20020a056a000be700b006e08618d06fmr5402240pfu.15.1707666274945; Sun, 11 Feb 2024 07:44:34 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXowjBnPL7K9TK313W9v8e42KDNQ3ZT6FsdhfMJNawbT5WwAY0VqGgpdHlVURzVY68fpOFbk9+nVLFAYhSW8njDRcbAewbib/wCqr5tbbpvIzBvYM4F1egyCY5ZP8gYybgXxb/f9NvDuA== Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id y2-20020aa78542000000b006db87354a8fsm3893001pfn.119.2024.02.11.07.44.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 07:44:34 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2024; t=1707666273; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/+E1K6pvxB8MK9OPanevb+L76gD9CBZNqNqAXOGIap8=; b=qijXgEK5ILnIFBQD9mvvYrk8HhV0qF/7h3NkHCWDSW0OfQp8hRZA7zCNXbLnbSBplY04O6 Kirdbej8E/m2bGTTDavzL0V5tkjGqQG3iZLzBvxWJsobdgM764bjSbtoNxfecOaou8sNAA 45mWTzntZE2Y4vEehnQC4a7HUTVK62ScQPL0Wk2JfZYtEr6enThuUsScK2oXrRvvZyK4q+ cLYb4wJH/Pqp5B+cdaZL9SC6XvTsK7y8BxOf7T9lFgBjRyJ2bjklPz6NrcW0ZaR2KVDILT fnHk7SKjHgfdrCoUmlU7d0ik15oDH9b8+Z5IsYeHN4s+VMbvR4ZnUi86ulp2Bg== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sun, 11 Feb 2024 12:45:07 -0300 Subject: [PATCH 1/2] ARM: sa1111: make sa1111_bus_type const MIME-Version: 1.0 Message-Id: <20240211-bus_cleanup-rmk-v1-1-65668e578d55@marliere.net> References: <20240211-bus_cleanup-rmk-v1-0-65668e578d55@marliere.net> In-Reply-To: <20240211-bus_cleanup-rmk-v1-0-65668e578d55@marliere.net> To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=1424; i=ricardo@marliere.net; h=from:subject:message-id; bh=DK2hrKQSmA/m3vpTrCvZiCmzCE4CNhTcTtfORvNIHKU=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlyOuDqUqPoEntFfTN/v8LK/S+wiWRLSEiI9Huc C7rg+ncd+mJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZcjrgwAKCRDJC4p8Y4ZY pvIXD/9BytVKk7OtOHgQDQKhGi1j48y4AfQjvEXViMSGASXzWJtxHoXXUXGmoijiXFA/Vjre6nv VcrWhAEJefFI9uWhY2pVF03wIciV2ZPU8/o6b7VvXuUNApCraIvXRkQ/xCEj01Gzb/smU0nIRQP G/ePjYwB8yOGt5tOTS/9qCZh/xesDnuY0dVI0Utyz+e5O+3hLyfCvmSSUYiRnfJCWvCDwL5f0R1 eG0j2jLsGXqh9/W6Io+YUfVatwlIMbOFIlHV3FVpCq/BXBLKFLjE1xQZJjyUtydMUUazBkeK2ko E3vtiY52OUmTSd6tvBqPwwdSsvM/FxIII47OrMHYxaawnjNTMAqDpSjBQldmZcvGtNCVl41QaK7 t+eDVRURWVc43GKX+BHgR2rDGnKPcrz/Ubp6uBHvYLW/SixQA+yZX6ijU4oB9S7LiG7FBieiM1B sUoKRMoirYDNF/6upir6YPZT42CnWXDZBy3r3iw7S55aasn1AIaBqiSj4fkO6qWeVR+pky334TJ 24zo3NGov5M+MMOY13NCOIvfBZ+tmhhVOhEm/eIxP38xLRsU7le94dVdTjX/95X5fraNkYf2SFk P9tZXsrYNejtKbCZK70LU3pxVE8q3Ut9Ts5zTES8ChW0THysUQ7x6mvyqiR4Qa+8UDROzg6jfaR WHVaAcirRIze2CA== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240211_074436_097300_FF5DD4DA X-CRM114-Status: GOOD ( 13.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Now that the driver core can properly handle constant struct bus_type, move the sa1111_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- arch/arm/common/sa1111.c | 2 +- arch/arm/include/asm/hardware/sa1111.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c index 1fbd7363cf11..de5eba0a11f6 100644 --- a/arch/arm/common/sa1111.c +++ b/arch/arm/common/sa1111.c @@ -1367,7 +1367,7 @@ static void sa1111_bus_remove(struct device *dev) drv->remove(sadev); } -struct bus_type sa1111_bus_type = { +const struct bus_type sa1111_bus_type = { .name = "sa1111-rab", .match = sa1111_match, .probe = sa1111_bus_probe, diff --git a/arch/arm/include/asm/hardware/sa1111.h b/arch/arm/include/asm/hardware/sa1111.h index d8c6f8a99dfa..02f3f9ca8582 100644 --- a/arch/arm/include/asm/hardware/sa1111.h +++ b/arch/arm/include/asm/hardware/sa1111.h @@ -368,7 +368,7 @@ -extern struct bus_type sa1111_bus_type; +extern const struct bus_type sa1111_bus_type; #define SA1111_DEVID_SBI (1 << 0) #define SA1111_DEVID_SK (1 << 1) From patchwork Sun Feb 11 15:45:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ricardo B. Marliere" X-Patchwork-Id: 13552509 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D43B4C4829B for ; Sun, 11 Feb 2024 15:44:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=P08PLcgDe3VSje4JIxDB+TxGMTFfukEO9GC3tlRv4qQ=; b=0ArG3ym/uNnfgL 8s9ostF1iBpB7cnEyvAb3aUeCijpdHRu8b61JJL7mitY9f9xx8ExvDUW9P9X6k/gEB/qHp80NqLso N50HcPY4TU5PRbCXH8rlnFGnJGtXwjjoiTQ7UohgXkjve72xNAL+nSxPIrNKiTaYAMUdDzr8L/vsp T4lxt+fBr5NUtkmg9slukxKIAZDxwIwH9qyc9qxd25iA6IypP5LbyEn7ZVaJAwfRyTLmzu6Oxq3Yg 8GnCFsqb3pnqFEqksDHNpdsDshS3vXoCyjlfIyD99Ok+BHtU1VoT1rMvbcu6gY1rYZYwewxQV62ED 6X1kOznZpdgRd9VmVtfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZC0a-00000002wYs-41EJ; Sun, 11 Feb 2024 15:44:44 +0000 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZC0V-00000002wWR-2Hft for linux-arm-kernel@lists.infradead.org; Sun, 11 Feb 2024 15:44:40 +0000 Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-6e12d0af927so1763177a34.0 for ; Sun, 11 Feb 2024 07:44:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707666278; x=1708271078; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:dkim-signature:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=iSmA1cSynCqQIlNVQ5FPbNWJVzvoZ+aRPHqPGGv5d7I=; b=TpDSPdIaVjDWOnsyapobPCS6fNVUg8HiUB2pnq33FmRpk22+6LBOdZ/Y4ZWuWE99rG YbYoKu9+91z+ZvXNutpizuk5sHVInqtI+yQlBbPQwciEpqHUjNtTN8KJX/3hylYWcOkL y4kSTTzLdTQxnhqBYao1mMdttpeZ0z6sP4nekc/MJz8I6dCYkuEOZOUbkt2wpbLhU/ZO gtP4irWaDGkzAwA/F+LAMqQMgQB3SEfXR9hibWMjTjmtdYKit0AegKikMd/GrWp31nYe ETc9/aAq5HyuamXOzmIwnDIRveqMOk/zkivH/OcaBEX4DytS1ByBjcS2KSwZV3PBEdKh Zlqw== X-Gm-Message-State: AOJu0Yw4kC0StsrOFG0sc3T4s2xNTfUK9lnQzlLWkxkmjRDU/MMTTBje TbOMrLINYDxA8cmsI21QIT6ssu0jXq6rtSwLhwkmiofA8SsuinTi X-Google-Smtp-Source: AGHT+IFNs2spGEyVcBjQ8A170hFY1vqr5VCSGucgDBWE+QDFujCRcS5xMIKSTbAZn2S/iP1XJmq4LQ== X-Received: by 2002:a9d:5f1a:0:b0:6e2:bdcf:e31a with SMTP id f26-20020a9d5f1a000000b006e2bdcfe31amr4720136oti.17.1707666278219; Sun, 11 Feb 2024 07:44:38 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWoiMSbGJe8S1q2ovuzusX/bwgA76D8ullFd58iyry0AWkEGojBJQ0EJoWZFHJDcMiDN7rPTy9GkX105L8QzRE21VZRx5jH79bkNSvRNO4viHrNf3u1Q0i0dUHorNKkGz8URPu7q1Vghg== Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id n25-20020aa78a59000000b006dd8a07696csm3907611pfa.106.2024.02.11.07.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 07:44:37 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2024; t=1707666276; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iSmA1cSynCqQIlNVQ5FPbNWJVzvoZ+aRPHqPGGv5d7I=; b=KcploYk9c9GJF1gy2PasRbT+RUU6tACZjm4S3eIKku6LuupjPmSFQHrXQI3KQeQMTqJHTI 1XRZFqxNOdPHkAaFeWVW9ODPwug13zNMSev/0jYrmJKvu8i/at5hKtttR4xjqUYE6sKZwc V21H7BsReWjBY5pYlm0xFG/C0OrbupSo7olH63WBL3GVepMfBX/x++K3656cpCRLqHmoyX wRLvLCK+cb03czKClyaXtO+eFE7SB+ubv3ws0tvNNLc06+oHvn6X8umuLjSikTWt/1WC7g cDjrSLEy2pivGXHIDMaAfK87jG8U13b9IWMD/giWO4i1ymJLHfhEINHulhnsOA== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sun, 11 Feb 2024 12:45:08 -0300 Subject: [PATCH 2/2] ARM: ecard: make ecard_bus_type const MIME-Version: 1.0 Message-Id: <20240211-bus_cleanup-rmk-v1-2-65668e578d55@marliere.net> References: <20240211-bus_cleanup-rmk-v1-0-65668e578d55@marliere.net> In-Reply-To: <20240211-bus_cleanup-rmk-v1-0-65668e578d55@marliere.net> To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=1570; i=ricardo@marliere.net; h=from:subject:message-id; bh=Zp1Q7HHvgyv0KT1mM4ftOo2mRyUQ2sFgTV9nu850Kig=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlyOuD8ODd/0ZKmuvbvR2pW6rdXJpZB6FjW2D2r ocNh2NL10uJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZcjrgwAKCRDJC4p8Y4ZY pr2MD/9NAY96OeQSHI6t2nQzztaYYKMIBrBwXSn08TW8UZsVlJnKQ5zegjL4D1I/RViTQ11NQ8y LnkxFtyae4w2KqgtvGrfCt1wJgMmagqY11wKtLQ6svch8FDgo7KpQJA0BMv8KToG2aRy/YOaX5V PsR2vpnKeXOxC24C48bgbXf4p+DthYx4fvzApG8Mv76dVgqZlBCjsQ4nnrgbWaEVE7cYE/SkCbF mQlhvJaf0hvWb89tggvEbxHScJlrGHzPEo6ykRjLou1QQONG0RHiTeLT9BJmAAHpVEr4rVLUClw +yr+hZZdz0ppoJqsW/S1rFT2f7tvAAfCY6F/jcakfYA8/Of2Z+UfIsfEy+PohxeVVt1owFSwHtp E+LEGAYjrDTaUbQeE0VQs165EcdlsbpvEsZpelo67ilK4B2S/nt75+7oN2u1GPYWRNqYYHIg2dr IDG5L3/RIybyqmNIAhmQ3isC2aDobQTaYqpsiGd9oeP9P6vgjNeMlsSD4eoDX3nX6u849NOWvOR tj74tTG4qKk913CebFAfR3WQccLSQVKFXeBw0x2EEi+uhgGmHxLxDbwDvg7YaGqlyEMrW3d+FT6 GJeATLwfV/ETdnFd8abiOQpuoL4rQ2ZRISyTwCbRNO3+MBXEJW4PeWXUNz1Jj2KW11QxAswH/K9 wPX+2G/5eZmlcSQ== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240211_074439_619710_4E1D47F4 X-CRM114-Status: GOOD ( 13.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Now that the driver core can properly handle constant struct bus_type, move the ecard_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Greg Kroah-Hartman Suggested-by: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- arch/arm/include/asm/ecard.h | 2 +- arch/arm/mach-rpc/ecard.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/include/asm/ecard.h b/arch/arm/include/asm/ecard.h index 4befe8d2ae19..7cbe001bf9cc 100644 --- a/arch/arm/include/asm/ecard.h +++ b/arch/arm/include/asm/ecard.h @@ -195,7 +195,7 @@ void __iomem *ecardm_iomap(struct expansion_card *ec, unsigned int res, unsigned long offset, unsigned long maxsize); #define ecardm_iounmap(__ec, __addr) devm_iounmap(&(__ec)->dev, __addr) -extern struct bus_type ecard_bus_type; +extern const struct bus_type ecard_bus_type; #define ECARD_DEV(_d) container_of((_d), struct expansion_card, dev) diff --git a/arch/arm/mach-rpc/ecard.c b/arch/arm/mach-rpc/ecard.c index c30df1097c52..4b843cffcac2 100644 --- a/arch/arm/mach-rpc/ecard.c +++ b/arch/arm/mach-rpc/ecard.c @@ -1124,7 +1124,7 @@ static int ecard_match(struct device *_dev, struct device_driver *_drv) return ret; } -struct bus_type ecard_bus_type = { +const struct bus_type ecard_bus_type = { .name = "ecard", .dev_groups = ecard_dev_groups, .match = ecard_match,