linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org,
	Sergio Aguirre <saaguirre@ti.com>, sricharan <r.sricharan@ti.com>
Subject: linux-next: manual merge of the v4l-dvb tree with Linus' tree
Date: Tue, 22 Mar 2011 12:00:47 +1100	[thread overview]
Message-ID: <20110322120047.109ced69.sfr@canb.auug.org.au> (raw)

Hi Mauro,

Today's linux-next merge of the v4l-dvb tree got a conflict in
arch/arm/mach-omap2/devices.c between commit 0abcf6185eb8 ("OMAP3:
devices: Initialise the l3 device with the hwmod data") from Linus' tree
and commit 5e1118fa89c7 ("[media] omap3: Add function to register
omap3isp platform device structure") from the v4l-dvb tree.

Just context changes.  I fixed it up (see below) and can carry the fix as
necessary.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --cc arch/arm/mach-omap2/devices.c
index d478f53,145c8f0..0000000
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@@ -35,74 -33,12 +35,75 @@@
  
  #include "mux.h"
  #include "control.h"
 -
+ #include "devices.h"
  
 +#define L3_MODULES_MAX_LEN 12
 +#define L3_MODULES 3
 +
 +static int __init omap3_l3_init(void)
 +{
 +	int l;
 +	struct omap_hwmod *oh;
 +	struct omap_device *od;
 +	char oh_name[L3_MODULES_MAX_LEN];
 +
 +	/*
 +	 * To avoid code running on other OMAPs in
 +	 * multi-omap builds
 +	 */
 +	if (!(cpu_is_omap34xx()))
 +		return -ENODEV;
 +
 +	l = snprintf(oh_name, L3_MODULES_MAX_LEN, "l3_main");
 +
 +	oh = omap_hwmod_lookup(oh_name);
 +
 +	if (!oh)
 +		pr_err("could not look up %s\n", oh_name);
 +
 +	od = omap_device_build("omap_l3_smx", 0, oh, NULL, 0,
 +							   NULL, 0, 0);
 +
 +	WARN(IS_ERR(od), "could not build omap_device for %s\n", oh_name);
 +
 +	return IS_ERR(od) ? PTR_ERR(od) : 0;
 +}
 +postcore_initcall(omap3_l3_init);
 +
 +static int __init omap4_l3_init(void)
 +{
 +	int l, i;
 +	struct omap_hwmod *oh[3];
 +	struct omap_device *od;
 +	char oh_name[L3_MODULES_MAX_LEN];
 +
 +	/*
 +	 * To avoid code running on other OMAPs in
 +	 * multi-omap builds
 +	 */
 +	if (!(cpu_is_omap44xx()))
 +		return -ENODEV;
 +
 +	for (i = 0; i < L3_MODULES; i++) {
 +		l = snprintf(oh_name, L3_MODULES_MAX_LEN, "l3_main_%d", i+1);
 +
 +		oh[i] = omap_hwmod_lookup(oh_name);
 +		if (!(oh[i]))
 +			pr_err("could not look up %s\n", oh_name);
 +	}
 +
 +	od = omap_device_build_ss("omap_l3_noc", 0, oh, 3, NULL,
 +						     0, NULL, 0, 0);
 +
 +	WARN(IS_ERR(od), "could not build omap_device for %s\n", oh_name);
 +
 +	return PTR_ERR(od);
 +}
 +postcore_initcall(omap4_l3_init);
 +
  #if defined(CONFIG_VIDEO_OMAP2) || defined(CONFIG_VIDEO_OMAP2_MODULE)
  
- static struct resource cam_resources[] = {
+ static struct resource omap2cam_resources[] = {
  	{
  		.start		= OMAP24XX_CAMERA_BASE,
  		.end		= OMAP24XX_CAMERA_BASE + 0xfff,
@@@ -197,63 -142,92 +207,67 @@@ static struct platform_device omap3isp_
  	.resource	= omap3isp_resources,
  };
  
- static inline void omap_init_camera(void)
+ int omap3_init_camera(struct isp_platform_data *pdata)
  {
- 	platform_device_register(&omap3isp_device);
+ 	omap3isp_device.dev.platform_data = pdata;
+ 	return platform_device_register(&omap3isp_device);
  }
- #else
+ 
  static inline void omap_init_camera(void)
  {
- }
+ #if defined(CONFIG_VIDEO_OMAP2) || defined(CONFIG_VIDEO_OMAP2_MODULE)
+ 	if (cpu_is_omap24xx())
+ 		platform_device_register(&omap2cam_device);
  #endif
+ }
  
 -#if defined(CONFIG_OMAP_MBOX_FWK) || defined(CONFIG_OMAP_MBOX_FWK_MODULE)
 -
 -#define MBOX_REG_SIZE   0x120
 -
 -#ifdef CONFIG_ARCH_OMAP2
 -static struct resource omap2_mbox_resources[] = {
 -	{
 -		.start		= OMAP24XX_MAILBOX_BASE,
 -		.end		= OMAP24XX_MAILBOX_BASE + MBOX_REG_SIZE - 1,
 -		.flags		= IORESOURCE_MEM,
 -	},
 +struct omap_device_pm_latency omap_keyboard_latency[] = {
  	{
 -		.start		= INT_24XX_MAIL_U0_MPU,
 -		.flags		= IORESOURCE_IRQ,
 -		.name		= "dsp",
 -	},
 -	{
 -		.start		= INT_24XX_MAIL_U3_MPU,
 -		.flags		= IORESOURCE_IRQ,
 -		.name		= "iva",
 +		.deactivate_func = omap_device_idle_hwmods,
 +		.activate_func   = omap_device_enable_hwmods,
 +		.flags = OMAP_DEVICE_LATENCY_AUTO_ADJUST,
  	},
  };
 -static int omap2_mbox_resources_sz = ARRAY_SIZE(omap2_mbox_resources);
 -#else
 -#define omap2_mbox_resources		NULL
 -#define omap2_mbox_resources_sz		0
 -#endif
  
 -#ifdef CONFIG_ARCH_OMAP3
 -static struct resource omap3_mbox_resources[] = {
 -	{
 -		.start		= OMAP34XX_MAILBOX_BASE,
 -		.end		= OMAP34XX_MAILBOX_BASE + MBOX_REG_SIZE - 1,
 -		.flags		= IORESOURCE_MEM,
 -	},
 -	{
 -		.start		= INT_24XX_MAIL_U0_MPU,
 -		.flags		= IORESOURCE_IRQ,
 -		.name		= "dsp",
 -	},
 -};
 -static int omap3_mbox_resources_sz = ARRAY_SIZE(omap3_mbox_resources);
 -#else
 -#define omap3_mbox_resources		NULL
 -#define omap3_mbox_resources_sz		0
 -#endif
 +int __init omap4_keyboard_init(struct omap4_keypad_platform_data
 +						*sdp4430_keypad_data)
 +{
 +	struct omap_device *od;
 +	struct omap_hwmod *oh;
 +	struct omap4_keypad_platform_data *keypad_data;
 +	unsigned int id = -1;
 +	char *oh_name = "kbd";
 +	char *name = "omap4-keypad";
 +
 +	oh = omap_hwmod_lookup(oh_name);
 +	if (!oh) {
 +		pr_err("Could not look up %s\n", oh_name);
 +		return -ENODEV;
 +	}
  
 -#ifdef CONFIG_ARCH_OMAP4
 +	keypad_data = sdp4430_keypad_data;
  
 -#define OMAP4_MBOX_REG_SIZE	0x130
 -static struct resource omap4_mbox_resources[] = {
 -	{
 -		.start          = OMAP44XX_MAILBOX_BASE,
 -		.end            = OMAP44XX_MAILBOX_BASE +
 -					OMAP4_MBOX_REG_SIZE - 1,
 -		.flags          = IORESOURCE_MEM,
 -	},
 -	{
 -		.start          = OMAP44XX_IRQ_MAIL_U0,
 -		.flags          = IORESOURCE_IRQ,
 -		.name		= "mbox",
 -	},
 -};
 -static int omap4_mbox_resources_sz = ARRAY_SIZE(omap4_mbox_resources);
 -#else
 -#define omap4_mbox_resources		NULL
 -#define omap4_mbox_resources_sz		0
 -#endif
 +	od = omap_device_build(name, id, oh, keypad_data,
 +			sizeof(struct omap4_keypad_platform_data),
 +			omap_keyboard_latency,
 +			ARRAY_SIZE(omap_keyboard_latency), 0);
  
 -static struct platform_device mbox_device = {
 -	.name		= "omap-mailbox",
 -	.id		= -1,
 +	if (IS_ERR(od)) {
 +		WARN(1, "Cant build omap_device for %s:%s.\n",
 +						name, oh->name);
 +		return PTR_ERR(od);
 +	}
 +
 +	return 0;
 +}
 +
 +#if defined(CONFIG_OMAP_MBOX_FWK) || defined(CONFIG_OMAP_MBOX_FWK_MODULE)
 +static struct omap_device_pm_latency mbox_latencies[] = {
 +	[0] = {
 +		.activate_func = omap_device_enable_hwmods,
 +		.deactivate_func = omap_device_idle_hwmods,
 +		.flags = OMAP_DEVICE_LATENCY_AUTO_ADJUST,
 +	},
  };
  
  static inline void omap_init_mbox(void)

             reply	other threads:[~2011-03-22  1:00 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-22  1:00 Stephen Rothwell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-10-01  0:33 linux-next: manual merge of the v4l-dvb tree with Linus' tree Stephen Rothwell
2021-10-01  6:46 ` Sean Young
2019-06-24  1:36 Stephen Rothwell
2019-06-06  0:43 Stephen Rothwell
2019-05-23 23:21 Stephen Rothwell
2019-01-31 23:22 Stephen Rothwell
2019-01-31 23:27 ` Stephen Rothwell
2016-08-04  1:02 Stephen Rothwell
2015-09-07 23:20 Stephen Rothwell
2015-04-21  1:54 Stephen Rothwell
2015-04-21  7:49 ` Laurent Pinchart
2015-04-21  8:02   ` Stephen Rothwell
2015-04-21  9:56     ` Mauro Carvalho Chehab
2015-04-21 12:38       ` Laurent Pinchart
2015-04-21 13:12         ` Mauro Carvalho Chehab
2015-04-21 13:36           ` Philipp Zabel
2015-04-21  1:50 Stephen Rothwell
2015-04-10  3:53 Stephen Rothwell
2014-01-14  0:50 Stephen Rothwell
2013-08-29  2:48 Stephen Rothwell
2012-10-02  1:13 Stephen Rothwell
2012-06-19  1:29 Stephen Rothwell
2012-06-19 10:06 ` Jiri Kosina
2012-06-19 11:50   ` Hans de Goede
2012-06-19 11:52     ` Jiri Kosina
2011-07-29  3:17 Stephen Rothwell
2011-07-29  4:10 ` Mauro Carvalho Chehab
2011-07-29  7:29   ` Stephen Rothwell
2011-04-08  3:27 Stephen Rothwell
2010-07-06  2:01 Stephen Rothwell
2010-05-13  1:52 Stephen Rothwell
2010-05-10  0:36 Stephen Rothwell
2010-05-11 23:23 ` Mauro Carvalho Chehab
2010-05-12  0:23   ` Stephen Rothwell
2010-05-10  0:32 Stephen Rothwell
2010-05-11  5:19 ` Hiremath, Vaibhav
2010-05-10  0:29 Stephen Rothwell
2010-04-07  1:00 Stephen Rothwell
2010-04-09  5:22 ` Mauro Carvalho Chehab
2010-04-09  7:13   ` Stephen Rothwell
2009-09-02  2:17 Stephen Rothwell
2009-09-03  2:12 ` Mauro Carvalho Chehab
2009-09-03  6:49   ` Stephen Rothwell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110322120047.109ced69.sfr@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=mchehab@infradead.org \
    --cc=r.sricharan@ti.com \
    --cc=saaguirre@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).