Lines Matching refs:pdev
39 struct platform_device *pdev = to_platform_device(ah->dev); in ath5k_ahb_eeprom_read() local
40 struct ar231x_board_config *bcfg = dev_get_platdata(&pdev->dev); in ath5k_ahb_eeprom_read()
56 struct platform_device *pdev = to_platform_device(ah->dev); in ath5k_hw_read_srev() local
57 struct ar231x_board_config *bcfg = dev_get_platdata(&pdev->dev); in ath5k_hw_read_srev()
64 struct platform_device *pdev = to_platform_device(ah->dev); in ath5k_ahb_eeprom_read_mac() local
65 struct ar231x_board_config *bcfg = dev_get_platdata(&pdev->dev); in ath5k_ahb_eeprom_read_mac()
85 static int ath_ahb_probe(struct platform_device *pdev) in ath_ahb_probe() argument
87 struct ar231x_board_config *bcfg = dev_get_platdata(&pdev->dev); in ath_ahb_probe()
96 if (!dev_get_platdata(&pdev->dev)) { in ath_ahb_probe()
97 dev_err(&pdev->dev, "no platform data specified\n"); in ath_ahb_probe()
102 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ath_ahb_probe()
104 dev_err(&pdev->dev, "no memory resource found\n"); in ath_ahb_probe()
111 dev_err(&pdev->dev, "ioremap failed\n"); in ath_ahb_probe()
116 res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); in ath_ahb_probe()
118 dev_err(&pdev->dev, "no IRQ resource found\n"); in ath_ahb_probe()
127 dev_err(&pdev->dev, "no memory for ieee80211_hw\n"); in ath_ahb_probe()
134 ah->dev = &pdev->dev; in ath_ahb_probe()
174 dev_err(&pdev->dev, "failed to attach device, err=%d\n", ret); in ath_ahb_probe()
179 platform_set_drvdata(pdev, hw); in ath_ahb_probe()
191 static int ath_ahb_remove(struct platform_device *pdev) in ath_ahb_remove() argument
193 struct ar231x_board_config *bcfg = dev_get_platdata(&pdev->dev); in ath_ahb_remove()
194 struct ieee80211_hw *hw = platform_get_drvdata(pdev); in ath_ahb_remove()