Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7145560imu; Thu, 31 Jan 2019 05:48:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN7S8/L8FR43qwF9Xke0rvbaB3IffATuw8IXhTY3PwhpcUSIUFMY8Yz9AeRENfHv33vBMpoZ X-Received: by 2002:a63:d818:: with SMTP id b24mr30942339pgh.174.1548942498358; Thu, 31 Jan 2019 05:48:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548942498; cv=none; d=google.com; s=arc-20160816; b=eKtkUnIMbKD5/wQMAo5jaqKjmzFUeFff+HtOqARoHVxXvXcxvM3DGmEzmtUEr8bJhn W48wPrEVs7LCHD8sdvYE4l0cXzC5o77j0MXT+Rz14YJnRSJxnRsA/VLAYXMSFOzBCsPg 8DWKUVWsorqJlHIJ0hcJJ9pruIh7Dkb8IRa00jrSvOYUv/F++hJWdBAWPd2ztx9Ttv3c YIgXxi1ZHSHdmFkx+eYNVLT5OQHkWmp4vm/yRwcPYV0YH0E+4ojlEHHL6eiGoH+mnSnh dC9Yy44J9sMNyClF27NEvOk7RvcebajOLtekz6Sq+iJmVprh+0/2f/e4LU9f+i2fLRzf UjEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nfKl1oX5ii0RYJJLqp7zIGe4OVIyZURXgpjZsJl0h8c=; b=xB7nGNk/Z5KGOLcA9GeGY4GK/6IKvmUf+VF6d2XL5r9BT4ogZ54y2hfLQQFHQNQXBp /48ZlEATGAkL46ab02o1tIQufeUk10wzrx/pJHgo3BSGqqIlEH1O/dMrwhFivEltWr+O gSChhU3VIKW+XL9MaP+LWWDfsf06YmBBIbFazBuZI7koO0Xp67IHiQf9BT7ejP7L5IwB S6m5jnAIaTVnBUpFA7SyFzOZaS4OTGBinXPdXfjl0ihjGWOzw6zB4dNT8ErbInDNwBaT wcNuMxTDmJpN2qHOzV8TE/YIJEfYBKHLgkdwfHMBGczBaXc6gQoxwabTDukBJB/bs3p3 DaCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=FNEezZhL; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gn20si4584076plb.98.2019.01.31.05.48.03; Thu, 31 Jan 2019 05:48:18 -0800 (PST) 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; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=FNEezZhL; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732934AbfAaNmV (ORCPT + 99 others); Thu, 31 Jan 2019 08:42:21 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:54299 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387607AbfAaNj4 (ORCPT ); Thu, 31 Jan 2019 08:39:56 -0500 Received: by mail-wm1-f68.google.com with SMTP id a62so2531580wmh.4 for ; Thu, 31 Jan 2019 05:39:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nfKl1oX5ii0RYJJLqp7zIGe4OVIyZURXgpjZsJl0h8c=; b=FNEezZhLEyujXQxrHyX6JfOwxaB91fFSvIaIRtQON7fmiIhE1uASmQEZfxxdEYcUq9 dlu0IOzBMpnKCD21G9Ugar4o5s3wIJoQbxwbTAXlGaIVHD54UDnXaDOB/ni0X3ZhWLlW J81rxlhPANr0Dkzm39i/ak5F3BTc7QrmI0Owb/Z+tG4zaq2VUKKAhciLBC0RjHmqdZkI BFdHabIfa9YmexqZAgCUQwDGdqELhVgQUjTpD1Di0GeKbTXY3ac+XLAkpqLusqJureBc Q1gWEl/MVtfIlZ1ouZukzfzNq5ZSoV3h/N+GRpwHmSyYYUzLCNwdF0EOB4qN/9HnqtHV QFKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nfKl1oX5ii0RYJJLqp7zIGe4OVIyZURXgpjZsJl0h8c=; b=SZ7dprkpVnyXHxuHMujsoDf/ztSgf8m1wDk1QWSPYceIdqzugEHCA8SKCh/P8OJ4Af QTXa9wV/FN4el+O7IgXJEKTxOlznOTDlgBZdVBpO3pWliOODvi8uWPQ6dQLsYkifDSrM 0fL9b/+gmmEDPtzuNSUF25fm2LPu6SvtHYHzAohiv+lYUekjtovkyvjvL9jWk+AO2oi0 VbKjqAM5uXL4VSDyqcnhRtAI7Be6ImsJsoTMsSFSkYiJTq86fbzcSFhzwtbY4Dd9HFs3 IENdtkTHx9xO+fMbgMxdtS1MYKEfAnY3Ewv8maOPNMGDmIDjhsTWd8KHIQMtNb5JA003 bAfQ== X-Gm-Message-State: AJcUukfRviWAI/ARkBLnWLyeGMFsO31gFL810xSzEr4/y6f/fJnHngFY sSeYn8HuNKyo5LPnASxBpO1eiQ== X-Received: by 2002:a7b:c218:: with SMTP id x24mr29381474wmi.58.1548941993875; Thu, 31 Jan 2019 05:39:53 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id h10sm5479768wmf.44.2019.01.31.05.39.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Jan 2019 05:39:53 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Thomas Gleixner , Jason Cooper , Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 10/35] ARM: davinci: aintc: wrap davinci_irq_init() with a helper Date: Thu, 31 Jan 2019 14:39:03 +0100 Message-Id: <20190131133928.17985-11-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190131133928.17985-1-brgl@bgdev.pl> References: <20190131133928.17985-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski We're going to extend the davinci_irq_init() function with a config structure so we can drop the intc-related fields from davinci_soc_info. Once we do it, we won't be able to use this routine directly as the init_irq callback. Wrap the calls in additional helpers that don't take parameters and can be assigned to init_irq. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/board-dm355-evm.c | 2 +- arch/arm/mach-davinci/board-dm355-leopard.c | 2 +- arch/arm/mach-davinci/board-dm365-evm.c | 2 +- arch/arm/mach-davinci/board-dm644x-evm.c | 2 +- arch/arm/mach-davinci/board-dm646x-evm.c | 4 ++-- arch/arm/mach-davinci/board-neuros-osd2.c | 2 +- arch/arm/mach-davinci/board-sffsdr.c | 2 +- arch/arm/mach-davinci/davinci.h | 4 ++++ arch/arm/mach-davinci/dm355.c | 5 +++++ arch/arm/mach-davinci/dm365.c | 5 +++++ arch/arm/mach-davinci/dm644x.c | 5 +++++ arch/arm/mach-davinci/dm646x.c | 5 +++++ 12 files changed, 32 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-davinci/board-dm355-evm.c b/arch/arm/mach-davinci/board-dm355-evm.c index f7fa960c23e3..3d0303fb792f 100644 --- a/arch/arm/mach-davinci/board-dm355-evm.c +++ b/arch/arm/mach-davinci/board-dm355-evm.c @@ -438,7 +438,7 @@ static __init void dm355_evm_init(void) MACHINE_START(DAVINCI_DM355_EVM, "DaVinci DM355 EVM") .atag_offset = 0x100, .map_io = dm355_evm_map_io, - .init_irq = davinci_irq_init, + .init_irq = dm355_init_irqs, .init_time = dm355_init_time, .init_machine = dm355_evm_init, .init_late = davinci_init_late, diff --git a/arch/arm/mach-davinci/board-dm355-leopard.c b/arch/arm/mach-davinci/board-dm355-leopard.c index 0fdf1d03eb11..91e9772b9399 100644 --- a/arch/arm/mach-davinci/board-dm355-leopard.c +++ b/arch/arm/mach-davinci/board-dm355-leopard.c @@ -273,7 +273,7 @@ static __init void dm355_leopard_init(void) MACHINE_START(DM355_LEOPARD, "DaVinci DM355 leopard") .atag_offset = 0x100, .map_io = dm355_leopard_map_io, - .init_irq = davinci_irq_init, + .init_irq = dm355_init_irqs, .init_time = dm355_init_time, .init_machine = dm355_leopard_init, .init_late = davinci_init_late, diff --git a/arch/arm/mach-davinci/board-dm365-evm.c b/arch/arm/mach-davinci/board-dm365-evm.c index e3b0b701e395..be1cfcc412f7 100644 --- a/arch/arm/mach-davinci/board-dm365-evm.c +++ b/arch/arm/mach-davinci/board-dm365-evm.c @@ -834,7 +834,7 @@ static __init void dm365_evm_init(void) MACHINE_START(DAVINCI_DM365_EVM, "DaVinci DM365 EVM") .atag_offset = 0x100, .map_io = dm365_evm_map_io, - .init_irq = davinci_irq_init, + .init_irq = dm365_init_irqs, .init_time = dm365_init_time, .init_machine = dm365_evm_init, .init_late = davinci_init_late, diff --git a/arch/arm/mach-davinci/board-dm644x-evm.c b/arch/arm/mach-davinci/board-dm644x-evm.c index 16ffed2525e6..f23a29e5116f 100644 --- a/arch/arm/mach-davinci/board-dm644x-evm.c +++ b/arch/arm/mach-davinci/board-dm644x-evm.c @@ -890,7 +890,7 @@ MACHINE_START(DAVINCI_EVM, "DaVinci DM644x EVM") /* Maintainer: MontaVista Software */ .atag_offset = 0x100, .map_io = davinci_evm_map_io, - .init_irq = davinci_irq_init, + .init_irq = dm644x_init_irqs, .init_time = dm644x_init_time, .init_machine = davinci_evm_init, .init_late = davinci_init_late, diff --git a/arch/arm/mach-davinci/board-dm646x-evm.c b/arch/arm/mach-davinci/board-dm646x-evm.c index 8d5be6dd2019..ebf07d92224e 100644 --- a/arch/arm/mach-davinci/board-dm646x-evm.c +++ b/arch/arm/mach-davinci/board-dm646x-evm.c @@ -863,7 +863,7 @@ static __init void evm_init(void) MACHINE_START(DAVINCI_DM6467_EVM, "DaVinci DM646x EVM") .atag_offset = 0x100, .map_io = davinci_map_io, - .init_irq = davinci_irq_init, + .init_irq = dm646x_init_irqs, .init_time = dm646x_evm_init_time, .init_machine = evm_init, .init_late = davinci_init_late, @@ -873,7 +873,7 @@ MACHINE_END MACHINE_START(DAVINCI_DM6467TEVM, "DaVinci DM6467T EVM") .atag_offset = 0x100, .map_io = davinci_map_io, - .init_irq = davinci_irq_init, + .init_irq = dm646x_init_irqs, .init_time = dm6467t_evm_init_time, .init_machine = evm_init, .init_late = davinci_init_late, diff --git a/arch/arm/mach-davinci/board-neuros-osd2.c b/arch/arm/mach-davinci/board-neuros-osd2.c index efdaa27241c5..fb4c5b3ba8f7 100644 --- a/arch/arm/mach-davinci/board-neuros-osd2.c +++ b/arch/arm/mach-davinci/board-neuros-osd2.c @@ -231,7 +231,7 @@ MACHINE_START(NEUROS_OSD2, "Neuros OSD2") /* Maintainer: Neuros Technologies */ .atag_offset = 0x100, .map_io = davinci_ntosd2_map_io, - .init_irq = davinci_irq_init, + .init_irq = dm644x_init_irqs, .init_time = dm644x_init_time, .init_machine = davinci_ntosd2_init, .init_late = davinci_init_late, diff --git a/arch/arm/mach-davinci/board-sffsdr.c b/arch/arm/mach-davinci/board-sffsdr.c index 792bb84d5011..2fc6f23285b5 100644 --- a/arch/arm/mach-davinci/board-sffsdr.c +++ b/arch/arm/mach-davinci/board-sffsdr.c @@ -153,7 +153,7 @@ static __init void davinci_sffsdr_init(void) MACHINE_START(SFFSDR, "Lyrtech SFFSDR") .atag_offset = 0x100, .map_io = davinci_sffsdr_map_io, - .init_irq = davinci_irq_init, + .init_irq = dm644x_init_irqs, .init_time = dm644x_init_time, .init_machine = davinci_sffsdr_init, .init_late = davinci_init_late, diff --git a/arch/arm/mach-davinci/davinci.h b/arch/arm/mach-davinci/davinci.h index db4c95ef4d5c..49958cc161d7 100644 --- a/arch/arm/mach-davinci/davinci.h +++ b/arch/arm/mach-davinci/davinci.h @@ -88,6 +88,7 @@ int davinci_init_wdt(void); /* DM355 function declarations */ void dm355_init(void); void dm355_init_time(void); +void dm355_init_irqs(void); void dm355_register_clocks(void); void dm355_init_spi0(unsigned chipselect_mask, const struct spi_board_info *info, unsigned len); @@ -97,6 +98,7 @@ int dm355_gpio_register(void); /* DM365 function declarations */ void dm365_init(void); +void dm365_init_irqs(void); void dm365_init_time(void); void dm365_register_clocks(void); void dm365_init_asp(void); @@ -110,6 +112,7 @@ int dm365_gpio_register(void); /* DM644x function declarations */ void dm644x_init(void); +void dm644x_init_irqs(void); void dm644x_init_devices(void); void dm644x_init_time(void); void dm644x_register_clocks(void); @@ -119,6 +122,7 @@ int dm644x_gpio_register(void); /* DM646x function declarations */ void dm646x_init(void); +void dm646x_init_irqs(void); void dm646x_init_time(unsigned long ref_clk_rate, unsigned long aux_clkin_rate); void dm646x_register_clocks(void); void dm646x_init_mcasp0(struct snd_platform_data *pdata); diff --git a/arch/arm/mach-davinci/dm355.c b/arch/arm/mach-davinci/dm355.c index a31f56c70d1d..2795b5ee0069 100644 --- a/arch/arm/mach-davinci/dm355.c +++ b/arch/arm/mach-davinci/dm355.c @@ -738,6 +738,11 @@ int __init dm355_init_video(struct vpfe_config *vpfe_cfg, return 0; } +void __init dm355_init_irqs(void) +{ + davinci_irq_init(); +} + static int __init dm355_init_devices(void) { struct platform_device *edma_pdev; diff --git a/arch/arm/mach-davinci/dm365.c b/arch/arm/mach-davinci/dm365.c index 42b2012d25cc..3222873ff9c6 100644 --- a/arch/arm/mach-davinci/dm365.c +++ b/arch/arm/mach-davinci/dm365.c @@ -995,6 +995,11 @@ int __init dm365_init_video(struct vpfe_config *vpfe_cfg, return 0; } +void __init dm365_init_irqs(void) +{ + davinci_irq_init(); +} + static int __init dm365_init_devices(void) { struct platform_device *edma_pdev; diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c index bf7ebdcf6c18..cfc6e2d481d7 100644 --- a/arch/arm/mach-davinci/dm644x.c +++ b/arch/arm/mach-davinci/dm644x.c @@ -672,6 +672,11 @@ int __init dm644x_init_video(struct vpfe_config *vpfe_cfg, return 0; } +void __init dm644x_init_irqs(void) +{ + davinci_irq_init(); +} + void __init dm644x_init_devices(void) { struct platform_device *edma_pdev; diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c index 64b4ae5a4202..5cb087f68efe 100644 --- a/arch/arm/mach-davinci/dm646x.c +++ b/arch/arm/mach-davinci/dm646x.c @@ -633,6 +633,11 @@ void __init dm646x_register_clocks(void) platform_device_register(&dm646x_pll2_device); } +void __init dm646x_init_irqs(void) +{ + davinci_irq_init(); +} + static int __init dm646x_init_devices(void) { int ret = 0; -- 2.20.1