Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4056143imm; Mon, 25 Jun 2018 09:01:17 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIM1KIPjxq8+vy+LBqKRMJ2NPQCPAM/byV129+io1nwb71OqYDtCfdjDAWYiKEJLVmijl6v X-Received: by 2002:a17:902:5402:: with SMTP id d2-v6mr13074450pli.38.1529942477767; Mon, 25 Jun 2018 09:01:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529942477; cv=none; d=google.com; s=arc-20160816; b=cXNpW5VvztcJOWQWHqJZMfYl3vTZiMKZynbGTB6FVx3ZAeBuGq+o0HsqYJuvW/UoxR NDrKWyggiVCHIlXvNmhPAGJulsHp66kTL5hu+1jIf4aJVKBE0WZA+PKgyDt9GvGn22p3 GfLGweiq9XBPguZzRKW52jGFwJlJpmrPoLpMS0Y98ct7cm3ZC3m4FPBVgR8HmtfRsnDe LDvNZ/NYr8Wb59BH9EgjrdlxhoisYyZdTJK5CahTjwC64eRwdab0g371DoNU9AoIcEA5 M6Bw7tj+tAnEyRdBX+RuIAVVgjcXOyEh84XU6onb4+t4kbVUyZLqHwRYPJhsQKsv3Acm GOGQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=M/cHQPIQ02w6hDGi0pucIBHjbqpDctQ6eAUyXfIh1xM=; b=U1LhIoRo2J4/igHRVIecZjgHL999NoPRHDTzDn3HQ2VT12JghQdtBPzolFVmtWwlVx kfnqGi48YU7Sr0CwM0CTg5sQovH+jC1gGZPVnyKibykhGYyyZq5zbe30ugJ87xtYL0j1 N+DAjXVSA/g9gCFnRML5kO3eDS2aVd+lj1eoIuXB+Uvq8KGoF1dD0+/4HSzw2IuHl5Me E0OxjQGFVWGkVCxG+kgbU2cc9qIy16Jwi/ehQiwrAb0RXy3XzCFDC9+FE1IB6sZGgsX0 QK9n5QpI5RQazbfwPXvjpw0cGUCaJbzIW2neGEKQBvC8KbguX+uveMMUMJCPgZGoGlhT Vz6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=W4cSwwXV; 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 133-v6si4440704pge.406.2018.06.25.09.01.02; Mon, 25 Jun 2018 09:01:17 -0700 (PDT) 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=fail header.i=@lechnology.com header.s=default header.b=W4cSwwXV; 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 S1755242AbeFYQAQ (ORCPT + 99 others); Mon, 25 Jun 2018 12:00:16 -0400 Received: from vern.gendns.com ([206.190.152.46]:47745 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754632AbeFYQAP (ORCPT ); Mon, 25 Jun 2018 12:00:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=M/cHQPIQ02w6hDGi0pucIBHjbqpDctQ6eAUyXfIh1xM=; b=W4cSwwXVoQmJs6sNuXq/x7VvhM PBnI3mQxT/bGvVFadxTflNToYuvf4WeX+KhuoJBb96SlT7Htmyl9MW0pZ5+zGo0ufeq7GtYVFgiEf FEBbSrZeMsWBIwzqmJUbI3AZZGNjI+4mQ6pKzHJzkZDQ5ykgyCGkZd1U9/JYAzm3O8fsDnbdpMEod KN2ftWxliegL0f14txg4pCQI9qfammkwfXaowX9SwZMlpCL6BdPOoObfh1UK6eJOypvZnkNlgiwdZ zqAkzw1f+xNKsjIs3AAmSM0fPrSdXdH1+GctoRMryEAM65jYtEoRNSPOfQxWeiP+iL6Ao1dtmlDb9 u3XBiw2A==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:54048 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1fXTuX-001AJ9-9H; Mon, 25 Jun 2018 12:00:13 -0400 Subject: Re: [PATCH 3/9] ARM: davinci: da850-evm: use aemif platform driver in legacy mode To: Bartosz Golaszewski , Sekhar Nori , Kevin Hilman , Russell King , Michael Turquette , Stephen Boyd Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Bartosz Golaszewski References: <20180625152920.11549-1-brgl@bgdev.pl> <20180625152920.11549-4-brgl@bgdev.pl> From: David Lechner Message-ID: <13418bf6-dbe7-5091-b5a7-07f779fb9f63@lechnology.com> Date: Mon, 25 Jun 2018 11:00:11 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180625152920.11549-4-brgl@bgdev.pl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/25/2018 10:29 AM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > We now support board files in the aemif driver. Register a platform > device instead of using the handcrafted API in da850-evm. > > Signed-off-by: Bartosz Golaszewski > --- > - iounmap(aemif_addr); > -} > +static struct platform_device da850_evm_aemif_device = { > + .name = "ti-aemif", > + .dev = { > + .platform_data = &da850_evm_aemif_pdata, > + }, > + .resource = da850_evm_aemif_resource, > + .num_resources = ARRAY_SIZE(da850_evm_aemif_resource), > + .id = -1, > +}; > Not essential, but it is nice to have the id right after name since they are closely related (as you did in several other instances in this same patch). For a second, I thought you forgot id = -1 here before I saw it.