Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932993AbbHDJBZ (ORCPT ); Tue, 4 Aug 2015 05:01:25 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:35124 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932451AbbHDJBV (ORCPT ); Tue, 4 Aug 2015 05:01:21 -0400 Date: Tue, 4 Aug 2015 17:00:59 +0800 From: Leo Yan To: Paul Bolle Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Jassi Brar , Wei Xu , Bintian Wang , Haojian Zhuang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guodong Xu , Jian Zhang , Zhenwei Wang , Haoju Mo , Dan Zhao , kongfei@hisilicon.com, Guangyue Zeng Subject: Re: [RFC PATCH 2/3] mailbox: Hisilicon: add mailbox driver Message-ID: <20150804090059.GB27609@leoy-linaro> References: <1438564390-28111-1-git-send-email-leo.yan@linaro.org> <1438564390-28111-3-git-send-email-leo.yan@linaro.org> <1438677024.8734.24.camel@tiscali.nl> <20150804084930.GA27609@leoy-linaro> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150804084930.GA27609@leoy-linaro> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1251 Lines: 37 Hi Paul, On Tue, Aug 04, 2015 at 04:49:30PM +0800, Leo Yan wrote: > On Tue, Aug 04, 2015 at 10:30:24AM +0200, Paul Bolle wrote: > > (This RFC was part of this mornings catch of my crude mail filter. So, > > for what it's worth, what follows are a few random comments for the few > > things I'm able to spot.) [...] > > > +static int __init hi6220_mbox_init(void) > > > +{ > > > + return platform_driver_register(&hi6220_mbox_driver); > > > +} > > > +module_init(hi6220_mbox_init); > > > + > > > +static void __exit hi6220_mbox_exit(void) > > > +{ > > > + platform_driver_unregister(&hi6220_mbox_driver); > > > +} > > > +module_exit(hi6220_mbox_exit); > > > > This could be flattened into one line: > > module_platform_driver(hi6220_mbox_driver); Need clarify one thing: will modify to use core_initcall() for driver's initialization; due another clock driver depends on this mailbox driver, so mailbox init firstly with core_initcall() and use subsys_initcall() for clock driver. Thanks, Leo Yan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/