Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
d4f60e6f
Commit
d4f60e6f
authored
Oct 29, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] I2C: remove some MOD_INC and MOD_DEC usages that are not needed anymore.
parent
530ca2f1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
6 deletions
+0
-6
drivers/media/video/bt832.c
drivers/media/video/bt832.c
+0
-2
drivers/media/video/saa5249.c
drivers/media/video/saa5249.c
+0
-2
drivers/media/video/tuner-3036.c
drivers/media/video/tuner-3036.c
+0
-2
No files found.
drivers/media/video/bt832.c
View file @
d4f60e6f
...
@@ -187,7 +187,6 @@ static int bt832_attach(struct i2c_adapter *adap, int addr,
...
@@ -187,7 +187,6 @@ static int bt832_attach(struct i2c_adapter *adap, int addr,
t
->
client
.
data
=
t
;
t
->
client
.
data
=
t
;
i2c_attach_client
(
&
t
->
client
);
i2c_attach_client
(
&
t
->
client
);
MOD_INC_USE_COUNT
;
if
(
!
bt832_init
(
&
t
->
client
))
{
if
(
!
bt832_init
(
&
t
->
client
))
{
bt832_detach
(
&
t
->
client
);
bt832_detach
(
&
t
->
client
);
return
-
1
;
return
-
1
;
...
@@ -210,7 +209,6 @@ static int bt832_detach(struct i2c_client *client)
...
@@ -210,7 +209,6 @@ static int bt832_detach(struct i2c_client *client)
printk
(
"bt832: detach.
\n
"
);
printk
(
"bt832: detach.
\n
"
);
i2c_detach_client
(
client
);
i2c_detach_client
(
client
);
kfree
(
t
);
kfree
(
t
);
MOD_DEC_USE_COUNT
;
return
0
;
return
0
;
}
}
...
...
drivers/media/video/saa5249.c
View file @
d4f60e6f
...
@@ -214,7 +214,6 @@ static int saa5249_attach(struct i2c_adapter *adap, int addr, int kind)
...
@@ -214,7 +214,6 @@ static int saa5249_attach(struct i2c_adapter *adap, int addr, int kind)
}
}
t
->
client
=
client
;
t
->
client
=
client
;
i2c_attach_client
(
client
);
i2c_attach_client
(
client
);
MOD_INC_USE_COUNT
;
return
0
;
return
0
;
}
}
...
@@ -237,7 +236,6 @@ static int saa5249_detach(struct i2c_client *client)
...
@@ -237,7 +236,6 @@ static int saa5249_detach(struct i2c_client *client)
kfree
(
vd
->
priv
);
kfree
(
vd
->
priv
);
kfree
(
vd
);
kfree
(
vd
);
kfree
(
client
);
kfree
(
client
);
MOD_DEC_USE_COUNT
;
return
0
;
return
0
;
}
}
...
...
drivers/media/video/tuner-3036.c
View file @
d4f60e6f
...
@@ -134,7 +134,6 @@ tuner_attach(struct i2c_adapter *adap, int addr, int kind)
...
@@ -134,7 +134,6 @@ tuner_attach(struct i2c_adapter *adap, int addr, int kind)
printk
(
"tuner: SAB3036 found, status %02x
\n
"
,
tuner_getstatus
(
client
));
printk
(
"tuner: SAB3036 found, status %02x
\n
"
,
tuner_getstatus
(
client
));
i2c_attach_client
(
client
);
i2c_attach_client
(
client
);
MOD_INC_USE_COUNT
;
if
(
i2c_master_send
(
client
,
buffer
,
2
)
!=
2
)
if
(
i2c_master_send
(
client
,
buffer
,
2
)
!=
2
)
printk
(
"tuner: i2c i/o error 1
\n
"
);
printk
(
"tuner: i2c i/o error 1
\n
"
);
...
@@ -148,7 +147,6 @@ tuner_attach(struct i2c_adapter *adap, int addr, int kind)
...
@@ -148,7 +147,6 @@ tuner_attach(struct i2c_adapter *adap, int addr, int kind)
static
int
static
int
tuner_detach
(
struct
i2c_client
*
c
)
tuner_detach
(
struct
i2c_client
*
c
)
{
{
MOD_DEC_USE_COUNT
;
return
0
;
return
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment