Skip to content

Commit

Permalink
pata_at32: use module_platform_driver_probe()
Browse files Browse the repository at this point in the history
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Jingoo Han authored and Jeff Garzik committed Apr 3, 2013
1 parent 6d3bfc7 commit bdfa2e7
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/ata/pata_at32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit bdfa2e7

Please sign in to comment.