Set platform data to flash stored eeprom for ath5k

static struct ath5k_platform_data arv4518_ath5k_platform_data;
static int arv4518_pci_plat_dev_init(struct pci_dev *dev)
{
        if ((dev->vendor == PCI_VENDOR_ID_ATHEROS) && (dev->device ==
0xff1b))
                  dev->dev.platform_data = &arv4518_ath5k_platform_data;

        return 0;
}

Or any other per pci device  platform initialization required.


2010/11/24 John Crispin <[email protected]>

> Hi,
>
> what is the purpose of the hook ?
>
> Thanks,
> John
>
> On 24/11/10 01:45, ngp ngp wrote:
> > Add hook for platform pci device init. It will permit use of eeprom data
> > stored in flash of wireless (ath5k)  pci card as platform data.
> >
> >
> >
> >
> > _______________________________________________
> > openwrt-devel mailing list
> > [email protected]
> > https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to