Skip to content

Commit 1c2ecd7

Browse files
author
Fox Snowpatch
committed
1 parent ad0be02 commit 1c2ecd7

File tree

5 files changed

+0
-55
lines changed

5 files changed

+0
-55
lines changed

drivers/bus/fsl-mc/dpmcp.c

-22
Original file line numberDiff line numberDiff line change
@@ -75,25 +75,3 @@ int dpmcp_close(struct fsl_mc_io *mc_io,
7575
/* send command to mc*/
7676
return mc_send_command(mc_io, &cmd);
7777
}
78-
79-
/**
80-
* dpmcp_reset() - Reset the DPMCP, returns the object to initial state.
81-
* @mc_io: Pointer to MC portal's I/O object
82-
* @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_'
83-
* @token: Token of DPMCP object
84-
*
85-
* Return: '0' on Success; Error code otherwise.
86-
*/
87-
int dpmcp_reset(struct fsl_mc_io *mc_io,
88-
u32 cmd_flags,
89-
u16 token)
90-
{
91-
struct fsl_mc_command cmd = { 0 };
92-
93-
/* prepare command */
94-
cmd.header = mc_encode_cmd_header(DPMCP_CMDID_RESET,
95-
cmd_flags, token);
96-
97-
/* send command to mc*/
98-
return mc_send_command(mc_io, &cmd);
99-
}

drivers/bus/fsl-mc/fsl-mc-allocator.c

-5
Original file line numberDiff line numberDiff line change
@@ -656,8 +656,3 @@ int __init fsl_mc_allocator_driver_init(void)
656656
{
657657
return fsl_mc_driver_register(&fsl_mc_allocator_driver);
658658
}
659-
660-
void fsl_mc_allocator_driver_exit(void)
661-
{
662-
fsl_mc_driver_unregister(&fsl_mc_allocator_driver);
663-
}

drivers/bus/fsl-mc/fsl-mc-private.h

-6
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ int dpmcp_close(struct fsl_mc_io *mc_io,
6666
u32 cmd_flags,
6767
u16 token);
6868

69-
int dpmcp_reset(struct fsl_mc_io *mc_io,
70-
u32 cmd_flags,
71-
u16 token);
72-
7369
/*
7470
* Data Path Resource Container (DPRC) API
7571
*/
@@ -631,8 +627,6 @@ int dprc_scan_objects(struct fsl_mc_device *mc_bus_dev,
631627

632628
int __init fsl_mc_allocator_driver_init(void);
633629

634-
void fsl_mc_allocator_driver_exit(void);
635-
636630
void fsl_mc_init_all_resource_pools(struct fsl_mc_device *mc_bus_dev);
637631

638632
void fsl_mc_cleanup_all_resource_pools(struct fsl_mc_device *mc_bus_dev);

drivers/bus/fsl-mc/mc-io.c

-20
Original file line numberDiff line numberDiff line change
@@ -263,23 +263,3 @@ void fsl_mc_portal_free(struct fsl_mc_io *mc_io)
263263
dpmcp_dev->consumer_link = NULL;
264264
}
265265
EXPORT_SYMBOL_GPL(fsl_mc_portal_free);
266-
267-
/**
268-
* fsl_mc_portal_reset - Resets the dpmcp object for a given fsl_mc_io object
269-
*
270-
* @mc_io: Pointer to the fsl_mc_io object that wraps the MC portal to free
271-
*/
272-
int fsl_mc_portal_reset(struct fsl_mc_io *mc_io)
273-
{
274-
int error;
275-
struct fsl_mc_device *dpmcp_dev = mc_io->dpmcp_dev;
276-
277-
error = dpmcp_reset(mc_io, 0, dpmcp_dev->mc_handle);
278-
if (error < 0) {
279-
dev_err(&dpmcp_dev->dev, "dpmcp_reset() failed: %d\n", error);
280-
return error;
281-
}
282-
283-
return 0;
284-
}
285-
EXPORT_SYMBOL_GPL(fsl_mc_portal_reset);

include/linux/fsl/mc.h

-2
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,6 @@ int __must_check fsl_mc_portal_allocate(struct fsl_mc_device *mc_dev,
417417

418418
void fsl_mc_portal_free(struct fsl_mc_io *mc_io);
419419

420-
int fsl_mc_portal_reset(struct fsl_mc_io *mc_io);
421-
422420
int __must_check fsl_mc_object_allocate(struct fsl_mc_device *mc_dev,
423421
enum fsl_mc_pool_type pool_type,
424422
struct fsl_mc_device **new_mc_adev);

0 commit comments

Comments
 (0)