Lines Matching refs:zdev

244 static int xsurf100_probe(struct zorro_dev *zdev,  in xsurf100_probe()  argument
252 DEFINE_RES_MEM(zdev->resource.start + XS100_8390_BASE, in xsurf100_probe()
267 if (!request_mem_region(zdev->resource.start, 0x100, zdev->name)) { in xsurf100_probe()
268 dev_err(&zdev->dev, "cannot reserve X-Surf 100 control registers\n"); in xsurf100_probe()
272 if (!request_mem_region(zdev->resource.start + in xsurf100_probe()
276 dev_err(&zdev->dev, "cannot reserve 32-bit area\n"); in xsurf100_probe()
291 ax88796_data.base_regs = ioremap(zdev->resource.start, 0x100); in xsurf100_probe()
295 dev_err(&zdev->dev, "Cannot ioremap area %pR (registers)\n", in xsurf100_probe()
296 &zdev->resource); in xsurf100_probe()
302 ax88796_data.data_area = ioremap(zdev->resource.start + in xsurf100_probe()
307 dev_err(&zdev->dev, in xsurf100_probe()
309 &zdev->resource, XS100_8390_DATA32_BASE); in xsurf100_probe()
318 pdev = platform_device_register_resndata(&zdev->dev, "ax88796", in xsurf100_probe()
319 zdev->slotaddr, res, 2, in xsurf100_probe()
324 dev_err(&zdev->dev, "cannot register platform device\n"); in xsurf100_probe()
329 zorro_set_drvdata(zdev, pdev); in xsurf100_probe()
341 release_mem_region(zdev->resource.start + XS100_8390_DATA32_BASE, in xsurf100_probe()
345 release_mem_region(zdev->resource.start, 0x100); in xsurf100_probe()
350 static void xsurf100_remove(struct zorro_dev *zdev) in xsurf100_remove() argument
352 struct platform_device *pdev = zorro_get_drvdata(zdev); in xsurf100_remove()
358 release_mem_region(zdev->resource.start, 0x100); in xsurf100_remove()
360 release_mem_region(zdev->resource.start + XS100_8390_DATA32_BASE, in xsurf100_remove()