Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751458Ab3CRDNV (ORCPT ); Sun, 17 Mar 2013 23:13:21 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:65527 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750913Ab3CRDNP (ORCPT ); Sun, 17 Mar 2013 23:13:15 -0400 X-AuditID: cbfee691-b7f5f6d000002fda-27-514686495abf From: Jingoo Han To: "'Fabio Porcedda'" , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-ide@vger.kernel.org, linux-input@vger.kernel.org, linux-fbdev@vger.kernel.org Cc: "'Greg Kroah-Hartman'" , "'Jeff Garzik'" , "'Jingoo Han'" References: <1363280978-24051-1-git-send-email-fabio.porcedda@gmail.com> <1363280978-24051-3-git-send-email-fabio.porcedda@gmail.com> In-reply-to: <1363280978-24051-3-git-send-email-fabio.porcedda@gmail.com> Subject: Re: [PATCH v2 2/8] drivers: ata: use module_platform_driver_probe() Date: Mon, 18 Mar 2013 12:13:13 +0900 Message-id: <018c01ce2386$86c8f5f0$945ae1d0$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4g10UefkgB1OWXS7ijjwlSlFQ33wCrvyCA Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMIsWRmVeSWpSXmKPExsVy+t8zQ13PNrdAg1m/tCxO9H1gtTi24xGT xc1P31gtLu+aw2bRs2ErqwOrx+dNcgGMUVw2Kak5mWWpRfp2CVwZs24cYirYyFPx9e8h9gbG VVxdjJwcEgImEs+n7WGEsMUkLtxbz9bFyMUhJLCMUWLq8vPsMEWvJs2CSixilFh7ch4jhPOL UeLtl6Ng7WwCahJfvhwG6xAReA2U2JkCYjML1EnsmzmJCaKhnVFi+bQzzCAJTgFPiQutM9lA bGEBH4l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LzczcxguP7mfQOxlUNFocYBTgYlXh4DXhcA4VYE8uK K3MPMUpwMCuJ8DaEuAUK8aYkVlalFuXHF5XmpBYfYkwGenMis5Rocj4w9eSVxBsam5gZWRqZ WRiZmJuTJqwkznuw1TpQSCA9sSQ1OzW1ILUIZgsTB6dUA+MSYZNFAZ7bz75bLvx/R85sB41/ J5+wTuh/sjpLZ5HGwRVO3u+LT1/V4L5os3BRi6SKdI+Zi9m6w1pz7128/EJ21jOLeImPjvv+ +msaMW7Lm37gm+vZnzFBZt2Lph6aHpv948bsXZvPGv+69NLx8Gv7WQ1TLi875620dJHMyfaj P5oPztywM3KZshJLcUaioRZzUXEiALyKdrgzAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1776 Lines: 59 On Friday, March 15, 2013 2:10 AM, Fabio Porcedda wrote: > > This patch converts the drivers to use the > module_platform_driver_probe() macro which makes the code smaller and > a bit simpler. > > Signed-off-by: Fabio Porcedda > Cc: Greg Kroah-Hartman > Cc: Jeff Garzik > Cc: linux-ide@vger.kernel.org > --- > drivers/ata/pata_at32.c | 13 +------------ > 1 file changed, 1 insertion(+), 12 deletions(-) I already submitted the patch 2 weeks ago. http://www.spinics.net/lists/linux-ide/msg45141.html Best regards, Jingoo Han > > diff --git a/drivers/ata/pata_at32.c b/drivers/ata/pata_at32.c > index 36f189c..8d493b4 100644 > --- a/drivers/ata/pata_at32.c > +++ b/drivers/ata/pata_at32.c > @@ -393,18 +393,7 @@ static struct platform_driver pata_at32_driver = { > }, > }; > > -static int __init pata_at32_init(void) > -{ > - return platform_driver_probe(&pata_at32_driver, pata_at32_probe); > -} > - > -static void __exit pata_at32_exit(void) > -{ > - platform_driver_unregister(&pata_at32_driver); > -} > - > -module_init(pata_at32_init); > -module_exit(pata_at32_exit); > +module_platform_driver_probe(pata_at32_driver, pata_at32_probe); > > MODULE_LICENSE("GPL"); > MODULE_DESCRIPTION("AVR32 SMC/CFC PATA Driver"); > -- > 1.8.1.5 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- 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/