Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261595
b: refs/heads/master
c: 033d746
h: refs/heads/master
i:
  261593: 4dd9a5d
  261591: a4a7a59
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent a31a4e4 commit c3f9805
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 29 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7254026cedd42d75009f8a7f2999045007dd444e
refs/heads/master: 033d7463f816315308ffec6f69576d820bfbab0c
26 changes: 0 additions & 26 deletions trunk/drivers/media/video/soc_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -1209,36 +1209,10 @@ static int soc_camera_remove(struct device *dev)
return 0;
}

static int soc_camera_suspend(struct device *dev, pm_message_t state)
{
struct soc_camera_device *icd = to_soc_camera_dev(dev);
struct soc_camera_host *ici = to_soc_camera_host(icd->dev.parent);
int ret = 0;

if (ici->ops->suspend)
ret = ici->ops->suspend(icd, state);

return ret;
}

static int soc_camera_resume(struct device *dev)
{
struct soc_camera_device *icd = to_soc_camera_dev(dev);
struct soc_camera_host *ici = to_soc_camera_host(icd->dev.parent);
int ret = 0;

if (ici->ops->resume)
ret = ici->ops->resume(icd);

return ret;
}

struct bus_type soc_camera_bus_type = {
.name = "soc-camera",
.probe = soc_camera_probe,
.remove = soc_camera_remove,
.suspend = soc_camera_suspend,
.resume = soc_camera_resume,
};
EXPORT_SYMBOL_GPL(soc_camera_bus_type);

Expand Down
2 changes: 0 additions & 2 deletions trunk/include/media/soc_camera.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ struct soc_camera_host_ops {
struct module *owner;
int (*add)(struct soc_camera_device *);
void (*remove)(struct soc_camera_device *);
int (*suspend)(struct soc_camera_device *, pm_message_t);
int (*resume)(struct soc_camera_device *);
/*
* .get_formats() is called for each client device format, but
* .put_formats() is only called once. Further, if any of the calls to
Expand Down

0 comments on commit c3f9805

Please sign in to comment.