Searched refs:smdev (Results 1 – 1 of 1) sorted by relevance
712 struct sm501_device *smdev; in sm501_create_subdev() local714 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()[all …]