/arch/mips/pci/ |
D | fixup-fuloong2e.c | 47 static void loongson2e_nec_fixup(struct pci_dev *pdev) in loongson2e_nec_fixup() argument 52 pci_read_config_dword(pdev, 0xe0, &val); in loongson2e_nec_fixup() 53 pci_write_config_dword(pdev, 0xe0, (val & ~7) | 0x4); in loongson2e_nec_fixup() 56 pci_write_config_dword(pdev, 0xe4, 1 << 5); in loongson2e_nec_fixup() 59 static void loongson2e_686b_func0_fixup(struct pci_dev *pdev) in loongson2e_686b_func0_fixup() argument 63 sb_slot = PCI_SLOT(pdev->devfn); in loongson2e_686b_func0_fixup() 68 pci_write_config_byte(pdev, 0x40, 0x08); in loongson2e_686b_func0_fixup() 71 pci_write_config_byte(pdev, 0x41, 0x01); in loongson2e_686b_func0_fixup() 74 pci_write_config_byte(pdev, 0x45, 0x00); in loongson2e_686b_func0_fixup() 77 pci_write_config_byte(pdev, 0x46, 0xe0); in loongson2e_686b_func0_fixup() [all …]
|
D | fixup-malta.c | 68 static void malta_piix_func0_fixup(struct pci_dev *pdev) in malta_piix_func0_fixup() argument 84 pci_read_config_byte(pdev, PIIX4_FUNC0_PIRQRC+i, ®_val); in malta_piix_func0_fixup() 93 if (PCI_SLOT(pdev->devfn) == 10) { in malta_piix_func0_fixup() 98 pci_read_config_byte(pdev, PIIX4_FUNC0_TOM, ®_val); in malta_piix_func0_fixup() 99 pci_write_config_byte(pdev, PIIX4_FUNC0_TOM, reg_val | in malta_piix_func0_fixup() 104 pci_read_config_dword(pdev, PIIX4_FUNC0_GENCFG, ®_val32); in malta_piix_func0_fixup() 105 pci_write_config_dword(pdev, PIIX4_FUNC0_GENCFG, in malta_piix_func0_fixup() 109 pci_read_config_byte(pdev, PIIX4_FUNC0_SERIRQC, ®_val); in malta_piix_func0_fixup() 111 pci_write_config_byte(pdev, PIIX4_FUNC0_SERIRQC, reg_val); in malta_piix_func0_fixup() 114 pci_read_config_word(pdev, PCI_COMMAND, ®_val16); in malta_piix_func0_fixup() [all …]
|
D | fixup-lemote2f.c | 95 static void loongson_cs5536_isa_fixup(struct pci_dev *pdev) in loongson_cs5536_isa_fixup() argument 98 pci_write_config_dword(pdev, PCI_UART1_INT_REG, 1); in loongson_cs5536_isa_fixup() 99 pci_write_config_dword(pdev, PCI_UART2_INT_REG, 1); in loongson_cs5536_isa_fixup() 102 static void loongson_cs5536_ide_fixup(struct pci_dev *pdev) in loongson_cs5536_ide_fixup() argument 105 pci_write_config_dword(pdev, PCI_IDE_CFG_REG, in loongson_cs5536_ide_fixup() 109 static void loongson_cs5536_acc_fixup(struct pci_dev *pdev) in loongson_cs5536_acc_fixup() argument 112 pci_write_config_dword(pdev, PCI_ACC_INT_REG, 1); in loongson_cs5536_acc_fixup() 114 pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 0xc0); in loongson_cs5536_acc_fixup() 117 static void loongson_cs5536_ohci_fixup(struct pci_dev *pdev) in loongson_cs5536_ohci_fixup() argument 121 pci_write_config_dword(pdev, PCI_OHCI_INT_REG, 1); in loongson_cs5536_ohci_fixup() [all …]
|
/arch/m68k/amiga/ |
D | platform.c | 51 struct platform_device *pdev; in amiga_init_bus() local 58 pdev = platform_device_register_simple("amiga-zorro", -1, in amiga_init_bus() 60 return PTR_ERR_OR_ZERO(pdev); in amiga_init_bus() 136 struct platform_device *pdev; in amiga_init_devices() local 144 pdev = platform_device_register_simple("amiga-video", -1, NULL, in amiga_init_devices() 146 if (IS_ERR(pdev)) in amiga_init_devices() 147 return PTR_ERR(pdev); in amiga_init_devices() 153 pdev = platform_device_register_simple("amiga-audio", -1, NULL, in amiga_init_devices() 155 if (IS_ERR(pdev)) in amiga_init_devices() 156 return PTR_ERR(pdev); in amiga_init_devices() [all …]
|
/arch/x86/pci/ |
D | sta2x11-fixup.c | 45 static void sta2x11_new_instance(struct pci_dev *pdev) in sta2x11_new_instance() argument 53 instance->bus0 = pdev->subordinate->number + 1; in sta2x11_new_instance() 58 dev_info(&pdev->dev, "Using SWIOTLB (size %i)\n", size); in sta2x11_new_instance() 60 dev_emerg(&pdev->dev, "init swiotlb failed\n"); in sta2x11_new_instance() 69 static struct sta2x11_instance *sta2x11_pdev_to_instance(struct pci_dev *pdev) in sta2x11_pdev_to_instance() argument 75 ep = pdev->bus->number - instance->bus0; in sta2x11_pdev_to_instance() 82 static int sta2x11_pdev_to_ep(struct pci_dev *pdev) in sta2x11_pdev_to_ep() argument 86 instance = sta2x11_pdev_to_instance(pdev); in sta2x11_pdev_to_ep() 90 return pdev->bus->number - instance->bus0; in sta2x11_pdev_to_ep() 94 struct sta2x11_instance *sta2x11_get_instance(struct pci_dev *pdev) in sta2x11_get_instance() argument [all …]
|
/arch/powerpc/kernel/ |
D | eeh_sysfs.c | 27 struct pci_dev *pdev = to_pci_dev(dev); \ 28 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); \ 43 struct pci_dev *pdev = to_pci_dev(dev); in eeh_pe_state_show() local 44 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_show() 59 struct pci_dev *pdev = to_pci_dev(dev); in eeh_pe_state_store() local 60 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_pe_state_store() 82 struct pci_dev *pdev = to_pci_dev(dev); in eeh_notify_resume_show() local 83 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); in eeh_notify_resume_show() 84 struct pci_dn *pdn = pci_get_pdn(pdev); in eeh_notify_resume_show() 96 struct pci_dev *pdev = to_pci_dev(dev); in eeh_notify_resume_store() local [all …]
|
D | eeh_driver.c | 84 if (!edev->pdev) in eeh_edev_actionable() 86 if (edev->pdev->error_state == pci_channel_io_perm_failure) in eeh_edev_actionable() 105 static inline struct pci_driver *eeh_pcid_get(struct pci_dev *pdev) in eeh_pcid_get() argument 107 if (!pdev || !pdev->driver) in eeh_pcid_get() 110 if (!try_module_get(pdev->driver->driver.owner)) in eeh_pcid_get() 113 return pdev->driver; in eeh_pcid_get() 123 static inline void eeh_pcid_put(struct pci_dev *pdev) in eeh_pcid_put() argument 125 if (!pdev || !pdev->driver) in eeh_pcid_put() 128 module_put(pdev->driver->driver.owner); in eeh_pcid_put() 147 if (edev->pdev->msi_enabled || edev->pdev->msix_enabled) in eeh_disable_irq() [all …]
|
D | pci_dn.c | 63 struct pci_dev *pdev = NULL; in pci_get_pdn_by_devfn() local 66 list_for_each_entry(pdev, &bus->devices, bus_list) { in pci_get_pdn_by_devfn() 67 if (pdev->devfn == devfn) { in pci_get_pdn_by_devfn() 68 if (pdev->dev.archdata.pci_data) in pci_get_pdn_by_devfn() 69 return pdev->dev.archdata.pci_data; in pci_get_pdn_by_devfn() 71 dn = pci_device_to_OF_node(pdev); in pci_get_pdn_by_devfn() 95 struct pci_dn *pci_get_pdn(struct pci_dev *pdev) in pci_get_pdn() argument 101 if (pdev->dev.archdata.pci_data) in pci_get_pdn() 102 return pdev->dev.archdata.pci_data; in pci_get_pdn() 105 dn = pci_device_to_OF_node(pdev); in pci_get_pdn() [all …]
|
/arch/arm/mach-omap2/ |
D | omap_device.c | 53 dev_dbg(&od->pdev->dev, "Creating %s -> %s\n", clk_alias, clk_name); in _add_clkdev() 55 r = clk_get_sys(dev_name(&od->pdev->dev), clk_alias); in _add_clkdev() 57 dev_dbg(&od->pdev->dev, in _add_clkdev() 73 dev_name(&od->pdev->dev)); in _add_clkdev() 75 rc = clk_add_alias(clk_alias, dev_name(&od->pdev->dev), in _add_clkdev() 81 dev_err(&od->pdev->dev, in _add_clkdev() 84 dev_err(&od->pdev->dev, in _add_clkdev() 128 static int omap_device_build_from_dt(struct platform_device *pdev) in omap_device_build_from_dt() argument 133 struct device_node *node = pdev->dev.of_node; in omap_device_build_from_dt() 141 dev_dbg(&pdev->dev, "No 'hwmods' to build omap_device\n"); in omap_device_build_from_dt() [all …]
|
D | omap_device.h | 56 struct platform_device *pdev; member 66 int omap_device_enable(struct platform_device *pdev); 67 int omap_device_idle(struct platform_device *pdev); 71 struct omap_device *omap_device_alloc(struct platform_device *pdev, 74 int omap_device_register(struct platform_device *pdev); 79 int omap_device_get_context_loss_count(struct platform_device *pdev); 83 int omap_device_assert_hardreset(struct platform_device *pdev, 85 int omap_device_deassert_hardreset(struct platform_device *pdev, 89 static inline struct omap_device *to_omap_device(struct platform_device *pdev) in to_omap_device() argument 91 return pdev ? pdev->archdata.od : NULL; in to_omap_device()
|
/arch/powerpc/platforms/powernv/ |
D | pci-sriov.c | 146 static void pnv_pci_ioda_fixup_iov_resources(struct pci_dev *pdev) in pnv_pci_ioda_fixup_iov_resources() argument 148 struct pnv_phb *phb = pci_bus_to_pnvhb(pdev->bus); in pnv_pci_ioda_fixup_iov_resources() 158 pdev->dev.archdata.iov_data = iov; in pnv_pci_ioda_fixup_iov_resources() 162 res = &pdev->resource[i + PCI_IOV_RESOURCES]; in pnv_pci_ioda_fixup_iov_resources() 166 dev_warn(&pdev->dev, "Don't support SR-IOV with non M64 VF BAR%d: %pR. \n", in pnv_pci_ioda_fixup_iov_resources() 171 vf_bar_sz = pci_iov_resource_size(pdev, i + PCI_IOV_RESOURCES); in pnv_pci_ioda_fixup_iov_resources() 192 pci_err(pdev, "VF BAR%d: %pR can't be mapped in single PE mode\n", in pnv_pci_ioda_fixup_iov_resources() 205 pci_dbg(pdev, " Fixing VF BAR%d: %pR to\n", i, res); in pnv_pci_ioda_fixup_iov_resources() 207 pci_dbg(pdev, " %pR\n", res); in pnv_pci_ioda_fixup_iov_resources() 209 pci_info(pdev, "VF BAR%d: %pR (expanded to %d VFs for PE alignment)", in pnv_pci_ioda_fixup_iov_resources() [all …]
|
/arch/sh/drivers/ |
D | push-switch.c | 36 struct platform_device *pdev = psw->pdev; in switch_work_handler() local 40 kobject_uevent(&pdev->dev.kobj, KOBJ_CHANGE); in switch_work_handler() 43 static int switch_drv_probe(struct platform_device *pdev) in switch_drv_probe() argument 53 irq = platform_get_irq(pdev, 0); in switch_drv_probe() 59 psw_info = pdev->dev.platform_data; in switch_drv_probe() 64 psw_info->name ? psw_info->name : DRV_NAME, pdev); in switch_drv_probe() 69 ret = device_create_file(&pdev->dev, &dev_attr_switch); in switch_drv_probe() 71 dev_err(&pdev->dev, "Failed creating device attrs\n"); in switch_drv_probe() 81 psw->pdev = pdev; in switch_drv_probe() 83 platform_set_drvdata(pdev, psw); in switch_drv_probe() [all …]
|
/arch/s390/pci/ |
D | pci_iov.c | 25 void zpci_iov_map_resources(struct pci_dev *pdev) in zpci_iov_map_resources() argument 33 len = pci_resource_len(pdev, bar); in zpci_iov_map_resources() 36 pdev->resource[bar].parent = &iov_res; in zpci_iov_map_resources() 40 void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn) in zpci_iov_remove_virtfn() argument 44 pci_iov_remove_virtfn(pdev->physfn, vfn - 1); in zpci_iov_remove_virtfn() 48 static int zpci_iov_link_virtfn(struct pci_dev *pdev, struct pci_dev *virtfn, int vfid) in zpci_iov_link_virtfn() argument 52 rc = pci_iov_sysfs_link(pdev, virtfn, vfid); in zpci_iov_link_virtfn() 58 virtfn->physfn = pci_dev_get(pdev); in zpci_iov_link_virtfn() 67 struct pci_dev *pdev; in zpci_iov_setup_virtfn() local 84 pdev = pci_get_slot(zbus->bus, zdev->devfn); in zpci_iov_setup_virtfn() [all …]
|
D | pci.c | 291 static void __iomem *pci_iomap_range_fh(struct pci_dev *pdev, int bar, in pci_iomap_range_fh() argument 294 struct zpci_dev *zdev = to_zpci(pdev); in pci_iomap_range_fh() 308 static void __iomem *pci_iomap_range_mio(struct pci_dev *pdev, int bar, in pci_iomap_range_mio() argument 312 unsigned long barsize = pci_resource_len(pdev, bar); in pci_iomap_range_mio() 313 struct zpci_dev *zdev = to_zpci(pdev); in pci_iomap_range_mio() 320 void __iomem *pci_iomap_range(struct pci_dev *pdev, int bar, in pci_iomap_range() argument 323 if (bar >= PCI_STD_NUM_BARS || !pci_resource_len(pdev, bar)) in pci_iomap_range() 327 return pci_iomap_range_mio(pdev, bar, offset, max); in pci_iomap_range() 329 return pci_iomap_range_fh(pdev, bar, offset, max); in pci_iomap_range() 339 static void __iomem *pci_iomap_wc_range_mio(struct pci_dev *pdev, int bar, in pci_iomap_wc_range_mio() argument [all …]
|
/arch/powerpc/platforms/pseries/ |
D | msi.c | 69 static void rtas_disable_msi(struct pci_dev *pdev) in rtas_disable_msi() argument 73 pdn = pci_get_pdn(pdev); in rtas_disable_msi() 113 static void rtas_teardown_msi_irqs(struct pci_dev *pdev) in rtas_teardown_msi_irqs() argument 117 for_each_pci_msi_entry(entry, pdev) { in rtas_teardown_msi_irqs() 125 rtas_disable_msi(pdev); in rtas_teardown_msi_irqs() 128 static int check_req(struct pci_dev *pdev, int nvec, char *prop_name) in check_req() argument 134 dn = pci_device_to_OF_node(pdev); in check_req() 155 static int check_req_msi(struct pci_dev *pdev, int nvec) in check_req_msi() argument 157 return check_req(pdev, nvec, "ibm,req#msi"); in check_req_msi() 160 static int check_req_msix(struct pci_dev *pdev, int nvec) in check_req_msix() argument [all …]
|
D | pci.c | 58 int pseries_send_map_pe(struct pci_dev *pdev, in pseries_send_map_pe() argument 70 pdn = pci_get_pdn(pdev); in pseries_send_map_pe() 84 dev_err(&pdev->dev, in pseries_send_map_pe() 91 void pseries_set_pe_num(struct pci_dev *pdev, u16 vf_index, __be16 pe_num) in pseries_set_pe_num() argument 95 pdn = pci_get_pdn(pdev); in pseries_set_pe_num() 97 dev_dbg(&pdev->dev, "VF %04x:%02x:%02x.%x associated with PE#%x\n", in pseries_set_pe_num() 98 pci_domain_nr(pdev->bus), in pseries_set_pe_num() 99 pdev->bus->number, in pseries_set_pe_num() 100 PCI_SLOT(pci_iov_virtfn_devfn(pdev, vf_index)), in pseries_set_pe_num() 101 PCI_FUNC(pci_iov_virtfn_devfn(pdev, vf_index)), in pseries_set_pe_num() [all …]
|
/arch/alpha/kernel/ |
D | pci-sysfs.c | 36 static int __pci_mmap_fits(struct pci_dev *pdev, int num, in __pci_mmap_fits() argument 44 size = ((pci_resource_len(pdev, num) - 1) >> (PAGE_SHIFT - shift)) + 1; in __pci_mmap_fits() 51 pci_name(pdev), num, size); in __pci_mmap_fits() 68 struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj)); in pci_mmap_resource() local 75 if (res == &pdev->resource[i]) in pci_mmap_resource() 83 if (!__pci_mmap_fits(pdev, i, vma, sparse)) in pci_mmap_resource() 86 pcibios_resource_to_bus(pdev->bus, &bar, res); in pci_mmap_resource() 90 return hose_mmap_page_range(pdev->sysdata, vma, mmap_type, sparse); in pci_mmap_resource() 114 void pci_remove_resource_files(struct pci_dev *pdev) in pci_remove_resource_files() argument 121 res_attr = pdev->res_attr[i]; in pci_remove_resource_files() [all …]
|
/arch/x86/platform/intel-mid/ |
D | pwr.c | 90 struct pci_dev *pdev; member 183 struct pci_dev *pdev, in __find_weakest_power_state() argument 191 if (lss[j].pdev == pdev || !lss[j].pdev) in __find_weakest_power_state() 197 lss[j].pdev = pdev; in __find_weakest_power_state() 200 dev_WARN(&pdev->dev, "No room for device in PWRMU LSS cache\n"); in __find_weakest_power_state() 213 static int __set_power_state(struct mid_pwr *pwr, struct pci_dev *pdev, in __set_power_state() argument 219 state = __find_weakest_power_state(pwr->lss[id], pdev, state); in __set_power_state() 224 dev_warn(&pdev->dev, "Can't set power state %s: %d\n", name, ret); in __set_power_state() 228 dev_vdbg(&pdev->dev, "Set power state %s\n", name); in __set_power_state() 232 static int mid_pwr_set_power_state(struct mid_pwr *pwr, struct pci_dev *pdev, in mid_pwr_set_power_state() argument [all …]
|
/arch/powerpc/sysdev/ |
D | mpic_u3msi.c | 42 static u64 read_ht_magic_addr(struct pci_dev *pdev, unsigned int pos) in read_ht_magic_addr() argument 48 pci_read_config_byte(pdev, pos + HT_MSI_FLAGS, &flags); in read_ht_magic_addr() 53 pci_read_config_dword(pdev, pos + HT_MSI_ADDR_LO, &tmp); in read_ht_magic_addr() 55 pci_read_config_dword(pdev, pos + HT_MSI_ADDR_HI, &tmp); in read_ht_magic_addr() 61 static u64 find_ht_magic_addr(struct pci_dev *pdev, unsigned int hwirq) in find_ht_magic_addr() argument 66 for (bus = pdev->bus; bus && bus->self; bus = bus->parent) { in find_ht_magic_addr() 75 static u64 find_u4_magic_addr(struct pci_dev *pdev, unsigned int hwirq) in find_u4_magic_addr() argument 77 struct pci_controller *hose = pci_bus_to_host(pdev->bus); in find_u4_magic_addr() 102 static void u3msi_teardown_msi_irqs(struct pci_dev *pdev) in u3msi_teardown_msi_irqs() argument 107 for_each_pci_msi_entry(entry, pdev) { in u3msi_teardown_msi_irqs() [all …]
|
/arch/arm/mach-omap1/ |
D | timer.c | 45 static int omap1_dm_timer_set_src(struct platform_device *pdev, in omap1_dm_timer_set_src() argument 48 int n = (pdev->id - 1) << 1; in omap1_dm_timer_set_src() 63 struct platform_device *pdev; in omap1_dm_timer_init() local 113 pdev = platform_device_alloc("omap_timer", i); in omap1_dm_timer_init() 114 if (!pdev) { in omap1_dm_timer_init() 127 ret = platform_device_add_resources(pdev, res, in omap1_dm_timer_init() 130 dev_err(&pdev->dev, "%s: Failed to add resources.\n", in omap1_dm_timer_init() 145 ret = platform_device_add_data(pdev, pdata, sizeof(*pdata)); in omap1_dm_timer_init() 147 dev_err(&pdev->dev, "%s: Failed to add platform data.\n", in omap1_dm_timer_init() 152 ret = platform_device_add(pdev); in omap1_dm_timer_init() [all …]
|
/arch/mips/cobalt/ |
D | serial.c | 42 struct platform_device *pdev; in cobalt_uart_add() local 51 pdev = platform_device_alloc("serial8250", -1); in cobalt_uart_add() 52 if (!pdev) in cobalt_uart_add() 55 pdev->id = PLAT8250_DEV_PLATFORM; in cobalt_uart_add() 56 pdev->dev.platform_data = cobalt_serial8250_port; in cobalt_uart_add() 58 …retval = platform_device_add_resources(pdev, cobalt_uart_resource, ARRAY_SIZE(cobalt_uart_resource… in cobalt_uart_add() 62 retval = platform_device_add(pdev); in cobalt_uart_add() 69 platform_device_put(pdev); in cobalt_uart_add()
|
D | led.c | 22 struct platform_device *pdev; in cobalt_led_add() local 27 pdev = platform_device_alloc("cobalt-qube-leds", -1); in cobalt_led_add() 29 pdev = platform_device_alloc("cobalt-raq-leds", -1); in cobalt_led_add() 31 if (!pdev) in cobalt_led_add() 34 retval = platform_device_add_resources(pdev, &cobalt_led_resource, 1); in cobalt_led_add() 38 retval = platform_device_add(pdev); in cobalt_led_add() 45 platform_device_put(pdev); in cobalt_led_add()
|
/arch/mips/ralink/ |
D | ill_acc.c | 49 struct platform_device *pdev; in ill_acc_of_setup() local 61 pdev = of_find_device_by_node(np); in ill_acc_of_setup() 62 if (!pdev) { in ill_acc_of_setup() 70 dev_err(&pdev->dev, "failed to get irq\n"); in ill_acc_of_setup() 71 put_device(&pdev->dev); in ill_acc_of_setup() 75 if (request_irq(irq, ill_acc_irq_handler, 0, "ill_acc", &pdev->dev)) { in ill_acc_of_setup() 76 dev_err(&pdev->dev, "failed to request irq\n"); in ill_acc_of_setup() 77 put_device(&pdev->dev); in ill_acc_of_setup() 83 dev_info(&pdev->dev, "irq registered\n"); in ill_acc_of_setup()
|
/arch/mips/loongson64/ |
D | platform.c | 20 struct platform_device *pdev; in loongson3_platform_init() local 29 pdev = kzalloc(sizeof(struct platform_device), GFP_KERNEL); in loongson3_platform_init() 30 if (!pdev) in loongson3_platform_init() 33 pdev->name = loongson_sysconf.sensors[i].name; in loongson3_platform_init() 34 pdev->id = loongson_sysconf.sensors[i].id; in loongson3_platform_init() 35 pdev->dev.platform_data = &loongson_sysconf.sensors[i]; in loongson3_platform_init() 36 platform_device_register(pdev); in loongson3_platform_init()
|
/arch/arm/mach-pxa/ |
D | pxa_cplds_irqs.c | 98 static int cplds_resume(struct platform_device *pdev) in cplds_resume() argument 100 struct cplds *fpga = platform_get_drvdata(pdev); in cplds_resume() 107 static int cplds_probe(struct platform_device *pdev) in cplds_probe() argument 115 fpga = devm_kzalloc(&pdev->dev, sizeof(*fpga), GFP_KERNEL); in cplds_probe() 119 fpga->irq = platform_get_irq(pdev, 0); in cplds_probe() 123 base_irq = platform_get_irq(pdev, 1); in cplds_probe() 127 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in cplds_probe() 128 fpga->base = devm_ioremap_resource(&pdev->dev, res); in cplds_probe() 132 platform_set_drvdata(pdev, fpga); in cplds_probe() 138 ret = devm_request_irq(&pdev->dev, fpga->irq, cplds_irq_handler, in cplds_probe() [all …]
|