Lines Matching refs:smdev
712 struct sm501_device *smdev; in sm501_create_subdev() local
714 smdev = kzalloc(sizeof(struct sm501_device) + in sm501_create_subdev()
717 if (!smdev) in sm501_create_subdev()
720 smdev->pdev.dev.release = sm501_device_release; in sm501_create_subdev()
722 smdev->pdev.name = name; in sm501_create_subdev()
723 smdev->pdev.id = sm->pdev_id; in sm501_create_subdev()
724 smdev->pdev.dev.parent = sm->dev; in sm501_create_subdev()
727 smdev->pdev.resource = (struct resource *)(smdev+1); in sm501_create_subdev()
728 smdev->pdev.num_resources = res_count; in sm501_create_subdev()
731 smdev->pdev.dev.platform_data = (void *)(smdev+1); in sm501_create_subdev()
733 return &smdev->pdev; in sm501_create_subdev()
744 struct sm501_device *smdev = to_sm_device(pdev); in sm501_register_device() local
757 list_add_tail(&smdev->list, &sm->devices); in sm501_register_device()
1678 struct sm501_device *smdev) in sm501_remove_sub() argument
1680 list_del(&smdev->list); in sm501_remove_sub()
1681 platform_device_unregister(&smdev->pdev); in sm501_remove_sub()
1686 struct sm501_device *smdev, *tmp; in sm501_dev_remove() local
1688 list_for_each_entry_safe(smdev, tmp, &sm->devices, list) in sm501_dev_remove()
1689 sm501_remove_sub(sm, smdev); in sm501_dev_remove()