rk1000: fix compilation warning

This commit is contained in:
Huang, Tao 2015-05-20 15:17:32 +08:00
parent 231897adf5
commit 250ff749b2
2 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ int rk1000_i2c_recv(const u8 addr, const u8 reg, const char *buf)
return (ret == 2) ? 0 : -1;
}
static ssize_t rk1000_show(struct kobject *kobj, struct kobj_attribute *attr,char *buf)
static ssize_t rk1000_show(struct device *dev, struct device_attribute *attr, char *buf)
{
int ret=-1;
int i=0;

View File

@ -21,7 +21,7 @@ int rk1000_tv_ntsc_init(void)
int ret;
if(cvbsformat>=0){
return;
return 0;
}
for (i = 0; i < sizeof(tv_encoder_regs); i++) {
@ -53,7 +53,7 @@ int rk1000_tv_pal_init(void)
int ret;
if(cvbsformat>=0){
return;
return 0;
}
for (i = 0; i < sizeof(tv_encoder_regs); i++) {