From patchwork Mon Sep 14 23:37:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 53605 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id 210AA2056A for ; Mon, 14 Sep 2015 23:37:48 +0000 (UTC) Received: by wisv5 with SMTP id v5sf1310116wis.0 for ; Mon, 14 Sep 2015 16:37:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=ObYuRVzmG9JnldyFolgOIJYpFwVCIEd87VbOoEGUvro=; b=mIStiNZTcWBJdNMVxhms8E6kMTiq/MMafrmadaXdhAMDtgA8iSkAjA1uDDzDuKqynH mDjuiM612qeeg4xr1Gx4V49f++jV/+Z4Dbf9z44qUxS6DMXP1E29IeDOud/FP+PIT2TC rFPQVzKcHTzawPlsAAtCSiPDmBPFvlSf0ZhCG94OQ1tqZpqhOI3SHBfLs27SzLzZQewP yL1UHL8hk4EV45PCRiJIgSOqvPIQneHHWPg/xpicPWwygknHzEc/891IUEeNPSTqOKAb d2pfr2jlgzxu0TMtT0vxcwwgRfS4qvT53Nv0x4E+pmYs+wpFpfMdSYIt4QkXFvg3e8lh VycQ== X-Gm-Message-State: ALoCoQl1cL7L0XBpPhc8Ih+FpyMPAyFUQt0ZxL75rK/4eMrynDuy6VzRIPbw2SiVc/LU/B+8RUuH X-Received: by 10.180.79.66 with SMTP id h2mr112633wix.3.1442273867472; Mon, 14 Sep 2015 16:37:47 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.138 with SMTP id y10ls87132laj.35.gmail; Mon, 14 Sep 2015 16:37:47 -0700 (PDT) X-Received: by 10.152.45.41 with SMTP id j9mr532255lam.110.1442273867311; Mon, 14 Sep 2015 16:37:47 -0700 (PDT) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com. [209.85.217.178]) by mx.google.com with ESMTPS id z7si2939772lal.157.2015.09.14.16.37.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Sep 2015 16:37:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) client-ip=209.85.217.178; Received: by lbbvu2 with SMTP id vu2so3497124lbb.0 for ; Mon, 14 Sep 2015 16:37:47 -0700 (PDT) X-Received: by 10.112.135.9 with SMTP id po9mr12158138lbb.56.1442273867053; Mon, 14 Sep 2015 16:37:47 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1461474lbq; Mon, 14 Sep 2015 16:37:45 -0700 (PDT) X-Received: by 10.66.66.202 with SMTP id h10mr39972932pat.145.1442273865548; Mon, 14 Sep 2015 16:37:45 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kw10si5649331pab.162.2015.09.14.16.37.44; Mon, 14 Sep 2015 16:37:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751387AbbINXho (ORCPT + 5 others); Mon, 14 Sep 2015 19:37:44 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:49436 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751465AbbINXhm (ORCPT ); Mon, 14 Sep 2015 19:37:42 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id t8ENbFwg011453; Mon, 14 Sep 2015 18:37:15 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id t8ENbF1W023216; Mon, 14 Sep 2015 18:37:15 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.224.2; Mon, 14 Sep 2015 18:37:15 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id t8ENbE2N002740; Mon, 14 Sep 2015 18:37:14 -0500 Received: from localhost (irmo.am.dhcp.ti.com [128.247.9.166]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id t8ENbE903073; Mon, 14 Sep 2015 18:37:14 -0500 (CDT) From: Suman Anna To: Tony Lindgren CC: Paul Walmsley , , , Suman Anna Subject: [PATCH 1/2] ARM: OMAP2+: Remove legacy mailbox device instantiation Date: Mon, 14 Sep 2015 18:37:12 -0500 Message-ID: <1442273833-25013-2-git-send-email-s-anna@ti.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1442273833-25013-1-git-send-email-s-anna@ti.com> References: <1442273833-25013-1-git-send-email-s-anna@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: s-anna@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.178 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The legacy-style mailbox device creation is supported currently only for OMAP3, as all other SoCs are DT-boot only. Even on this SoC, there are no client drivers that utilize these mailbox devices. So, clean up the legacy-style mailbox device instantiation logic. The mailbox devices are already present and supported for the DT boot on OMAP3. Signed-off-by: Suman Anna --- arch/arm/mach-omap2/devices.c | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 9374da313e8e..f0f9901d90b0 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include @@ -66,32 +65,6 @@ static int __init omap3_l3_init(void) } omap_postcore_initcall(omap3_l3_init); -#if defined(CONFIG_OMAP2PLUS_MBOX) || defined(CONFIG_OMAP2PLUS_MBOX_MODULE) -static inline void __init omap_init_mbox(void) -{ - struct omap_hwmod *oh; - struct platform_device *pdev; - struct omap_mbox_pdata *pdata; - - oh = omap_hwmod_lookup("mailbox"); - if (!oh) { - pr_err("%s: unable to find hwmod\n", __func__); - return; - } - if (!oh->dev_attr) { - pr_err("%s: hwmod doesn't have valid attrs\n", __func__); - return; - } - - pdata = (struct omap_mbox_pdata *)oh->dev_attr; - pdev = omap_device_build("omap-mailbox", -1, oh, pdata, sizeof(*pdata)); - WARN(IS_ERR(pdev), "%s: could not build device, err %ld\n", - __func__, PTR_ERR(pdev)); -} -#else -static inline void omap_init_mbox(void) { } -#endif /* CONFIG_OMAP2PLUS_MBOX */ - static inline void omap_init_sti(void) {} #if defined(CONFIG_SND_SOC) || defined(CONFIG_SND_SOC_MODULE) @@ -246,7 +219,6 @@ static int __init omap2_init_devices(void) omap_init_audio(); /* If dtb is there, the devices will be created dynamically */ if (!of_have_populated_dt()) { - omap_init_mbox(); omap_init_mcspi(); omap_init_sham(); omap_init_aes();