From patchwork Sun Nov 13 19:10:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13041732 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 2167CC4332F for ; Sun, 13 Nov 2022 19:11:19 +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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=XLN4HTJ23+vegywCFLrSORUSkZtWfaexJ2rbt/0AM88=; b=1prgUlMkTQzlte QTu7yNqLKRGYe6CBtL0VGhQD/RO1AtOoV2sxGSzpD+N+cE9D0rCaeYii2/+t7NPO4/ZmNUvn3aws3 Jplj5O0jd7SHMO5ViZA52c639o2EN7SXfS5Yb1HFCSW4pXzX5c4Wh/0QbAP0iVDd3LfZvplqmaTSg RYIg5NyMltZh4l+vRxpUOtpe+X8KqNHmcWUZ9GF3xDJEI4ohqIMMH+vHe8S5JIbx+QrtEDEK2P/J8 DeJ9FLlaeSyiae6XHaAL9pNAMjK3J6eILjfI2uxFV3ZRFds80AwbsXNYOAR7ZNXCb9i44mMIfyIOA 4HPkhRHIcCE/vTI5Ishw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouIMx-00DCpV-MM; Sun, 13 Nov 2022 19:10:15 +0000 Received: from mga12.intel.com ([192.55.52.136]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouIMu-00DCmN-3x for linux-arm-kernel@lists.infradead.org; Sun, 13 Nov 2022 19:10:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668366612; x=1699902612; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=cXvk/lfUOGyjHOe2uztoH6XTJP4Hv46hzt35fKtKj1Q=; b=A13QRt1JALFFKtIVB+RHwrZ+I0BwtN5OSgry2r4HghwSvZn7mXq0JTiB tVfv/OCnAmZ/jpi745gGjCY3SNoDOYZYBypaZLQUrL4ZtuQkUEe+Yyc8d H/sZUtnYgbpyZdbpvYI2HNKILTbN6FtGzjhMJ+Ct5MVpPN/WO6Aathsv1 2x9PkRaplT0pboYjLizBta9mx7Lsn2Nwz3lp6kWEW5K0xDUSM7gZaNmVX nOa8rL9HKM1/wWv2ssETHQaKWUWrmdwm4Ev2/ee5ff9CHRCFdO6PVYKVC GbQd7PNUG7G8lGW/FFmgyYzcy59vCTn9qx6HIFx9GC107MZwkgjRJQEun Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10530"; a="291551680" X-IronPort-AV: E=Sophos;i="5.96,161,1665471600"; d="scan'208";a="291551680" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2022 11:10:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10530"; a="743867540" X-IronPort-AV: E=Sophos;i="5.96,161,1665471600"; d="scan'208";a="743867540" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga002.fm.intel.com with ESMTP; 13 Nov 2022 11:10:07 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id B7780F7; Sun, 13 Nov 2022 21:10:31 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Lee Jones , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , "Rafael J. Wysocki" , Greg Kroah-Hartman , kernel test robot Subject: [PATCH v1 1/1] mfd: vexpress-sysreg: Fix resource compound literal assignments Date: Sun, 13 Nov 2022 21:10:27 +0200 Message-Id: <20221113191027.2327-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221113_111012_234996_1A1920F9 X-CRM114-Status: GOOD ( 11.70 ) 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 Since DEFINE_RES_*() macros were converted to provide a compound literal the user doesn't need to repeat it. Moreover, it may not be compiled. Fixes: 9c973ce7f9cf ("resource: Convert DEFINE_RES_NAMED() to be compound literal") Reported-by: kernel test robot Signed-off-by: Andy Shevchenko Acked-by: Sudeep Holla Acked-by: Lee Jones --- Should go via Greg's tree where ioport.h has been changed. drivers/mfd/vexpress-sysreg.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/mfd/vexpress-sysreg.c b/drivers/mfd/vexpress-sysreg.c index aaf24af287dd..eab82619ec31 100644 --- a/drivers/mfd/vexpress-sysreg.c +++ b/drivers/mfd/vexpress-sysreg.c @@ -61,35 +61,27 @@ static struct mfd_cell vexpress_sysreg_cells[] = { .name = "basic-mmio-gpio", .of_compatible = "arm,vexpress-sysreg,sys_led", .num_resources = 1, - .resources = (struct resource []) { - DEFINE_RES_MEM_NAMED(SYS_LED, 0x4, "dat"), - }, + .resources = &DEFINE_RES_MEM_NAMED(SYS_LED, 0x4, "dat"), .platform_data = &vexpress_sysreg_sys_led_pdata, .pdata_size = sizeof(vexpress_sysreg_sys_led_pdata), }, { .name = "basic-mmio-gpio", .of_compatible = "arm,vexpress-sysreg,sys_mci", .num_resources = 1, - .resources = (struct resource []) { - DEFINE_RES_MEM_NAMED(SYS_MCI, 0x4, "dat"), - }, + .resources = &DEFINE_RES_MEM_NAMED(SYS_MCI, 0x4, "dat"), .platform_data = &vexpress_sysreg_sys_mci_pdata, .pdata_size = sizeof(vexpress_sysreg_sys_mci_pdata), }, { .name = "basic-mmio-gpio", .of_compatible = "arm,vexpress-sysreg,sys_flash", .num_resources = 1, - .resources = (struct resource []) { - DEFINE_RES_MEM_NAMED(SYS_FLASH, 0x4, "dat"), - }, + .resources = &DEFINE_RES_MEM_NAMED(SYS_FLASH, 0x4, "dat"), .platform_data = &vexpress_sysreg_sys_flash_pdata, .pdata_size = sizeof(vexpress_sysreg_sys_flash_pdata), }, { .name = "vexpress-syscfg", .num_resources = 1, - .resources = (struct resource []) { - DEFINE_RES_MEM(SYS_MISC, 0x4c), - }, + .resources = &DEFINE_RES_MEM(SYS_MISC, 0x4c), } };