pata_mpc52xx.c (2ba14a017a4ba8d2266316f481d4ad7400073d18) pata_mpc52xx.c (66ffbe490b6156898364b3f20a571a78f8d77bc8)
1/*
2 * drivers/ata/pata_mpc52xx.c
3 *
4 * libata driver for the Freescale MPC52xx on-chip IDE interface
5 *
6 * Copyright (C) 2006 Sylvain Munaut <tnt@246tNt.com>
7 * Copyright (C) 2003 Mipsys - Benjamin Herrenschmidt
8 *

--- 350 unchanged lines hidden (view full) ---

359/* OF Platform driver */
360/* ======================================================================== */
361
362static int __devinit
363mpc52xx_ata_probe(struct of_device *op, const struct of_device_id *match)
364{
365 unsigned int ipb_freq;
366 struct resource res_mem;
1/*
2 * drivers/ata/pata_mpc52xx.c
3 *
4 * libata driver for the Freescale MPC52xx on-chip IDE interface
5 *
6 * Copyright (C) 2006 Sylvain Munaut <tnt@246tNt.com>
7 * Copyright (C) 2003 Mipsys - Benjamin Herrenschmidt
8 *

--- 350 unchanged lines hidden (view full) ---

359/* OF Platform driver */
360/* ======================================================================== */
361
362static int __devinit
363mpc52xx_ata_probe(struct of_device *op, const struct of_device_id *match)
364{
365 unsigned int ipb_freq;
366 struct resource res_mem;
367 int ata_irq;
367 int ata_irq = NO_IRQ;
368 struct mpc52xx_ata __iomem *ata_regs;
369 struct mpc52xx_ata_priv *priv;
370 int rv;
371
372 /* Get ipb frequency */
373 ipb_freq = mpc52xx_find_ipb_freq(op->node);
374 if (!ipb_freq) {
375 printk(KERN_ERR DRV_NAME ": "

--- 113 unchanged lines hidden (view full) ---

489
490 return 0;
491}
492
493#endif
494
495
496static struct of_device_id mpc52xx_ata_of_match[] = {
368 struct mpc52xx_ata __iomem *ata_regs;
369 struct mpc52xx_ata_priv *priv;
370 int rv;
371
372 /* Get ipb frequency */
373 ipb_freq = mpc52xx_find_ipb_freq(op->node);
374 if (!ipb_freq) {
375 printk(KERN_ERR DRV_NAME ": "

--- 113 unchanged lines hidden (view full) ---

489
490 return 0;
491}
492
493#endif
494
495
496static struct of_device_id mpc52xx_ata_of_match[] = {
497 {
498 .type = "ata",
499 .compatible = "mpc5200-ata",
500 },
497 { .compatible = "fsl,mpc5200-ata", },
498 { .compatible = "mpc5200-ata", },
501 {},
502};
503
504
505static struct of_platform_driver mpc52xx_ata_of_platform_driver = {
506 .owner = THIS_MODULE,
507 .name = DRV_NAME,
508 .match_table = mpc52xx_ata_of_match,

--- 39 unchanged lines hidden ---
499 {},
500};
501
502
503static struct of_platform_driver mpc52xx_ata_of_platform_driver = {
504 .owner = THIS_MODULE,
505 .name = DRV_NAME,
506 .match_table = mpc52xx_ata_of_match,

--- 39 unchanged lines hidden ---